diff options
Diffstat (limited to 'include/panic.h')
-rw-r--r-- | include/panic.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/panic.h b/include/panic.h new file mode 100644 index 0000000..076a425 --- /dev/null +++ b/include/panic.h @@ -0,0 +1,9 @@ +#ifndef _JOVE_PANIC_H +#define _JOVE_PANIC_H 1 + +#include "jove.h" + +#define kpanic(...) _kpanic(__FILE__, __LINE__, __VA_ARGS__) +NORETURN void _kpanic(const char *file, int line, const char *fmt, ...); + +#endif |