5 #include "../include/oberon.h"
7 #include "oberon-internals.h"
10 oberon_error(oberon_context_t
* ctx
, const char * fmt
, ...)
14 fprintf(stderr
, "error: ");
15 vfprintf(stderr
, fmt
, ptr
);
16 fprintf(stderr
, "\n");
17 fprintf(stderr
, " code_index = %i\n", ctx
-> code_index
);
18 fprintf(stderr
, " c = %c\n", ctx
-> c
);
19 fprintf(stderr
, " token = %i\n", ctx
-> token
);