diff options
Diffstat (limited to 'src/kernel/panic.h')
-rw-r--r-- | src/kernel/panic.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kernel/panic.h b/src/kernel/panic.h index 08328f2..6a8609f 100644 --- a/src/kernel/panic.h +++ b/src/kernel/panic.h @@ -1,6 +1,10 @@ #ifndef PANIC_H #define PANIC_H -void panic(const char *message) __attribute__ ((noreturn)); +#include <stdint.h> + +#define PANIC(msg) panic(__FILE__, __LINE__, msg) + +void panic(const char *filename, uint32_t line, const char *message) __attribute__ ((noreturn)); #endif
\ No newline at end of file |