mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
14 lines
296 B
C
14 lines
296 B
C
/*
|
|
assert.h
|
|
*/
|
|
|
|
#include <panic.h>
|
|
|
|
#undef assert
|
|
|
|
#ifdef NDEBUG /* required by ANSI standard */
|
|
#define assert(p) ((void)0)
|
|
#else
|
|
#define assert(e) ((e) ? (void)0 : panicf("Assertion failed: %s (%s: %s: %d)", #e, __FILE__, __func__, __LINE__))
|
|
#endif /* NDEBUG */
|
|
|