source:
trunk/src/emx/include/assert.h@
1972
| Last change on this file since 1972 was 1506, checked in by , 21 years ago | |
|---|---|
|
|
| File size: 370 bytes | |
| Rev | Line | |
|---|---|---|
| [1506] | 1 | /* assert.h,v 1.2 2004/09/14 22:27:31 bird Exp */ |
| 2 | /** @file | |
| 3 | * EMX | |
| 4 | */ | |
| [18] | 5 | |
| 6 | #if defined (__cplusplus) | |
| 7 | extern "C" { | |
| 8 | #endif | |
| 9 | ||
| 10 | #undef assert | |
| 11 | ||
| 12 | #if defined (NDEBUG) | |
| 13 | #define assert(exp) ((void)0) | |
| 14 | #else | |
| 15 | void _assert (__const__ char *, __const__ char *, unsigned); | |
| 16 | #define assert(exp) ((exp) ? (void)0 : _assert (#exp, __FILE__, __LINE__)) | |
| 17 | #endif | |
| 18 | ||
| 19 | #if defined (__cplusplus) | |
