aboutsummaryrefslogtreecommitdiff
path: root/inc/sassert.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/sassert.h')
-rw-r--r--inc/sassert.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/sassert.h b/inc/sassert.h
new file mode 100644
index 0000000..71a0c0e
--- /dev/null
+++ b/inc/sassert.h
@@ -0,0 +1,8 @@
+#ifndef SASSERT_H
+#define SASSERT_H
+
+#include <stddef.h>
+
+#define STATIC_ASSERT(expr) typedef int STATIC_ASSERT_FAILED[(expr) ? 1 : -1]
+
+#endif // SASSERT_H