summaryrefslogtreecommitdiff
path: root/kernel/include/panic.h
diff options
context:
space:
mode:
authorTyler Murphy <=>2023-07-16 02:54:32 -0400
committerTyler Murphy <=>2023-07-16 02:54:32 -0400
commitfbf131b5c043b27e0b1543374bb144e3e426f723 (patch)
tree07f0ab2fc107b36621d5ae95480e6a91e332548b /kernel/include/panic.h
downloadfinix-fbf131b5c043b27e0b1543374bb144e3e426f723.tar.gz
finix-fbf131b5c043b27e0b1543374bb144e3e426f723.tar.bz2
finix-fbf131b5c043b27e0b1543374bb144e3e426f723.zip
initial
Diffstat (limited to 'kernel/include/panic.h')
-rw-r--r--kernel/include/panic.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/include/panic.h b/kernel/include/panic.h
new file mode 100644
index 0000000..db02a24
--- /dev/null
+++ b/kernel/include/panic.h
@@ -0,0 +1,6 @@
+#pragma once
+
+#define panic(msg, ...) _panic_impl(msg, __LINE__, __FILE__, ## __VA_ARGS__)
+
+__attribute__((noreturn))
+extern void _panic_impl(char* msg, int line, char* file, ...);