summaryrefslogtreecommitdiffstats
path: root/include/assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/assert.h')
-rw-r--r--include/assert.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/assert.h b/include/assert.h
new file mode 100644
index 0000000..f208235
--- /dev/null
+++ b/include/assert.h
@@ -0,0 +1,10 @@
+#ifndef JOVE_LIB_ASSERT_H
+#define JOVE_LIB_ASSERT_H 1
+
+#include "jove.h"
+
+#define assert(cond) \
+ if(!(cond)) \
+ kpanic("Assert failure : %s\n", #cond)
+
+#endif