source: trunk/libc/include/assert.h

Last change on this file was 3897, checked in by bird, 11 years ago

svn properties.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 362 bytes
Line 
1/* assert.h,v 1.2 2004/09/14 22:27:31 bird Exp */
2/** @file
3 * EMX
4 */
5
6#if defined (__cplusplus)
7extern "C" {
8#endif
9
10#undef assert
11
12#if defined (NDEBUG)
13#define assert(exp) ((void)0)
14#else
15void _assert (const char *, const char *, unsigned);
16#define assert(exp) ((exp) ? (void)0 : _assert (#exp, __FILE__, __LINE__))
17#endif
18
19#if defined (__cplusplus)
20}
21#endif
Note: See TracBrowser for help on using the repository browser.