source: trunk/src/emx/include/assert.h@ 18

Last change on this file since 18 was 18, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 324 bytes
Line 
1/* assert.h (emx+gcc) */
2
3#if defined (__cplusplus)
4extern "C" {
5#endif
6
7#undef assert
8
9#if defined (NDEBUG)
10#define assert(exp) ((void)0)
11#else
12void _assert (__const__ char *, __const__ char *, unsigned);
13#define assert(exp) ((exp) ? (void)0 : _assert (#exp, __FILE__, __LINE__))
14#endif
15
16#if defined (__cplusplus)
17}
18#endif
Note: See TracBrowser for help on using the repository browser.