mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
15 lines
214 B
C
15 lines
214 B
C
/***
|
|
*
|
|
* assert.h
|
|
*
|
|
****/
|
|
|
|
#undef assert
|
|
|
|
#ifdef NDEBUG
|
|
#define assert(_expr) ((void)0)
|
|
#else
|
|
int assertFunc(const char *file, int line);
|
|
|
|
#define assert(_expr) ((_expr) || assertFunc(__FILE__, __LINE__))
|
|
#endif |