2023-08-06 22:08:34 +02:00
|
|
|
#ifndef DYNAMIC_PROGRAM_MYASSERT_H
|
|
|
|
#define DYNAMIC_PROGRAM_MYASSERT_H
|
2023-11-11 12:41:14 +01:00
|
|
|
#undef NDEBUG
|
2023-08-06 22:08:34 +02:00
|
|
|
#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
|