2023-10-07 23:32:30 +00:00
|
|
|
|
|
|
|
#ifndef _ASSERT_H
|
|
|
|
#define _ASSERT_H
|
|
|
|
|
|
|
|
#define assert(expr) ((expr) ? (void) (0) : __assert_fail(#expr, __FILE__, __LINE__, __func__))
|
|
|
|
|
2023-10-08 16:20:19 +00:00
|
|
|
extern void __assert_fail(const char * __assertion, const char * __file, unsigned int __line, const char * __function);
|
2023-10-07 23:32:30 +00:00
|
|
|
|
|
|
|
#endif
|