blob: aac81d7e9c429ea4c8636c2731f068c4b295933e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#ifndef __DUCC_BUILTIN___ASSERT_H__
#define __DUCC_BUILTIN___ASSERT_H__
#ifdef NDEBUG
#define assert(x) ((void)0)
#else
#define assert(x) \
do { \
if (!(x)) { \
fprintf(stderr, "%s:%d: assertion failed.\n", __FILE__, __LINE__); \
abort(); \
} \
} while (0)
#endif
#endif
|