10 lines
260 B
C
10 lines
260 B
C
|
|
||
|
#ifndef _ASSERT_H
|
||
|
#define _ASSERT_H
|
||
|
|
||
|
#define assert(expr) ((expr) ? (void) (0) : __assert_fail(#expr, __FILE__, __LINE__, __func__))
|
||
|
|
||
|
extern void __assert_fail(const char *__assertion, const char *__file, unsigned int __line, const char *__function);
|
||
|
|
||
|
#endif
|