Last change
on this file was 3809, checked in by bird, 11 years ago |
0.6: s/const/const/g - just use the (now) standard 'const' everywhere in emx and kLIBC code. Avoid changing external code too much. fixes #279.
|
-
Property cvs2svn:cvs-rev
set to
1.2
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
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)
|
---|
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)
|
---|
20 | }
|
---|
21 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.