14 lines
263 B
C
14 lines
263 B
C
#ifndef _ASSERT_H
|
|
#define _ASSERT_H 1
|
|
|
|
#define assert(x) \
|
|
do { \
|
|
if (!(x)) { \
|
|
__assert_fail(__FILE__, __LINE__, #x); \
|
|
} \
|
|
} while(0)
|
|
|
|
[[noreturn]] void __assert_fail(const char *file, int line, const char *message);
|
|
|
|
#endif
|