diff options
Diffstat (limited to 'src/lib/libkogata/debug.c')
-rw-r--r-- | src/lib/libkogata/debug.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libkogata/debug.c b/src/lib/libkogata/debug.c index 9688877..a8b9414 100644 --- a/src/lib/libkogata/debug.c +++ b/src/lib/libkogata/debug.c @@ -2,13 +2,17 @@ #include <debug.h> +#include <syscall.h> + void panic(const char* msg, const char* file, int line) { - // TODO + dbg_printf("Panic '%s', at %s:%d\n", msg, file, line); + exit(-1); while(true); } void panic_assert(const char* assert, const char* file, int line) { - // TODO + dbg_printf("Assert failed '%s', at %s:%d\n", assert, file, line); + exit(-1); while(true); } |