11 lines
247 B
C
11 lines
247 B
C
#ifndef DYNAMIC_PROGRAM_MYASSERT_H
|
|
#define DYNAMIC_PROGRAM_MYASSERT_H
|
|
#undef NDEBUG
|
|
#ifdef NDEBUG
|
|
#define ASSERT(x) do { (void)sizeof(x);} while (0)
|
|
#else
|
|
#include <assert.h>
|
|
#define ASSERT(x) assert(x)
|
|
#endif
|
|
|
|
#endif //DYNAMIC_PROGRAM_MYASSERT_H
|