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 0000000000..f3fef84351
--- /dev/null
+++ b/apps/plugins/puzzles/rbassert.h
@@ -0,0 +1,13 @@
1/*
2 copied from firmware/assert.h
3*/
4
5#undef assert
6
7#ifdef NDEBUG /* required by ANSI standard */
8#define assert(p) ((void)0)
9#else
10
11#define assert(e) ((e) ? (void)0 : fatal("assertion failed %s:%d", __FILE__, __LINE__))
12
13#endif /* NDEBUG */