summaryrefslogtreecommitdiff
path: root/src/kernel/panic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/panic.h')
-rw-r--r--src/kernel/panic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/panic.h b/src/kernel/panic.h
index 1e25a83..9407e44 100644
--- a/src/kernel/panic.h
+++ b/src/kernel/panic.h
@@ -8,3 +8,5 @@
tty_const(" (" __FILE__ ":" NUM2STR(__LINE__) ") "); \
halt_cpu(); \
} while (0)
+
+#define assert(stmt) do { if (!(stmt)) panic(); } while (0)