Search
lxdream.org :: lxdream/test/include/assert.h
lxdream 0.9.1
released Jun 29
Download Now
filename test/include/assert.h
changeset 185:6755a04c447f
author nkeynes
date Thu Dec 11 23:26:03 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Disable the generational translation cache - I've got no evidence that it
actually helps performance, and it simplifies things to get rid of it (in
particular, translated code doesn't have to worry about being moved now).
view annotate diff log raw
     1 /*
     2 	assert.h
     3 */
     5 #ifdef __cplusplus
     6 extern "C" {
     7 #endif
     9 #include "_ansi.h"
    11 #undef assert
    13 #ifdef NDEBUG           /* required by ANSI standard */
    14 #define assert(p)  	((void)0)
    15 #else
    17 #ifdef __STDC__
    18 #define assert(e)       ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e))
    19 #else   /* PCC */
    20 #define assert(e)       ((e) ? (void)0 : __assert(__FILE__, __LINE__, "e"))
    21 #endif
    23 #endif /* NDEBUG */
    25 void _EXFUN(__assert,(const char *, int, const char *));
    27 #ifdef __cplusplus
    28 }
    29 #endif
.