summaryrefslogtreecommitdiff
path: root/kernel/assert.h
diff options
context:
space:
mode:
authorAiden Gall <aiden@aidengall.xyz>2024-05-15 00:47:52 +0100
committerAiden Gall <aiden@aidengall.xyz>2024-05-15 00:48:53 +0100
commit5ebc67833086eccb3c3b1708745c927d5bcfd811 (patch)
treeec3347e5bcbccebcba8e9e121d22f1d74c82762f /kernel/assert.h
parentd28457e416f7ba7c903c4db6bff73fb87f77e3e6 (diff)
add static assertions
Diffstat (limited to 'kernel/assert.h')
-rw-r--r--kernel/assert.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/assert.h b/kernel/assert.h
new file mode 100644
index 0000000..2519b7f
--- /dev/null
+++ b/kernel/assert.h
@@ -0,0 +1 @@
+#define STATIC_ASSERT(COND,MSG) typedef char static_assert_##MSG[(COND)?1:-1]