summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/rbassert.h
blob: f3fef843518fa431c98e26a44fd1cd327a1f1a94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 */