12 lines
268 B
C
12 lines
268 B
C
#ifndef _ASSERT_H
|
|
#define _ASSERT_H 1
|
|
|
|
#define __ASSERT_VOID_CAST (void)
|
|
|
|
#define assert(expr) \
|
|
((expr) ? __ASSERT_VOID_CAST(0) : __assert_fail(__FILE__, __LINE__, #expr))
|
|
|
|
[[noreturn]] void __assert_fail(const char *file, int line, const char *message);
|
|
|
|
#endif
|