Rev 9013 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
9013 | turbocat | 1 | #ifndef _ASSERT_H_ |
2 | #define _ASSERT_H_ |
||
3 | |||
4 | #include |
||
5 | #include |
||
6 | |||
9766 | turbocat | 7 | #ifdef NDEBUG |
8 | #define assert(x) (void)0 |
||
9 | #else |
||
10 | #define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__), 0))) |
||
11 | #endif |
||
9013 | turbocat | 12 | |
9766 | turbocat | 13 | #endif // _ASSERT_H_ |