diff options
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/log.c b/src/log.c deleted file mode 100644 index 0e59ea2..0000000 --- a/src/log.c +++ /dev/null @@ -1,24 +0,0 @@ -#include <assert.h> -#include <stdarg.h> -#include <stdio.h> -#include <stdlib.h> - -#include <log.h> - -void errln(struct ctx_location *location, const char *fmt, ...) -{ - fprintf(stderr, "\x1B[1;36m%s:%lu:%lu:\x1B[0m ", location->path, location->line + 1, - location->column + 1); - - fprintf(stderr, "\x1B[1;31mError:\x1B[0m "); - - va_list ap; - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - va_end(ap); - - fprintf(stderr, "\n"); - context_print(stderr, location); - - exit(1); -} |