mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-13 00:24:10 +00:00
14 lines
282 B
C
14 lines
282 B
C
#ifndef __ASSERT
|
|
#define __ASSERT
|
|
|
|
void assert(int);
|
|
|
|
#endif /* __ASSERT */
|
|
|
|
#undef assert
|
|
#ifdef NDEBUG
|
|
#define assert(ignore) ((void)0)
|
|
#else
|
|
extern void __assert(char *, char *, unsigned);
|
|
#define assert(e) ((void)((e)||(__assert(#e, __FILE__, __LINE__),0)))
|
|
#endif /* NDEBUG */
|