summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/rbassert.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/rbassert.h')
-rw-r--r--apps/plugins/puzzles/rbassert.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/rbassert.h b/apps/plugins/puzzles/rbassert.h
new file mode 100644
index 0000000..f3fef84
--- /dev/null
+++ b/apps/plugins/puzzles/rbassert.h
@@ -0,0 +1,13 @@
+/*
+ copied from firmware/assert.h
+*/
+
+#undef assert
+
+#ifdef NDEBUG /* required by ANSI standard */
+#define assert(p) ((void)0)
+#else
+
+#define assert(e) ((e) ? (void)0 : fatal("assertion failed %s:%d", __FILE__, __LINE__))
+
+#endif /* NDEBUG */