add missing assert file
This commit is contained in:
parent
385ba6650b
commit
d2e91d74d5
1 changed files with 11 additions and 0 deletions
11
myassert.h
Normal file
11
myassert.h
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#ifndef DYNAMIC_PROGRAM_MYASSERT_H
|
||||||
|
#define DYNAMIC_PROGRAM_MYASSERT_H
|
||||||
|
|
||||||
|
#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
|
Loading…
Reference in a new issue