mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-13 16:07:28 +00:00
15 lines
275 B
C
15 lines
275 B
C
|
#ifndef __ASSERT
|
||
|
#define __ASSERT
|
||
|
|
||
|
void assert(int);
|
||
|
|
||
|
#endif /* __ASSERT */
|
||
|
|
||
|
#undef assert
|
||
|
#ifdef NDEBUG
|
||
|
#define assert(ignore) ((void)0)
|
||
|
#else
|
||
|
extern int _assert(char *, char *, unsigned);
|
||
|
#define assert(e) ((void)((e)||_assert(#e, __FILE__, __LINE__)))
|
||
|
#endif /* NDEBUG */
|