filename | test/include/assert.h |
changeset | 185:6755a04c447f |
author | nkeynes |
date | Thu Aug 23 12:34:43 2007 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Update generated files |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/test/include/assert.h Thu Aug 23 12:34:43 2007 +00001.3 @@ -0,0 +1,29 @@1.4 +/*1.5 + assert.h1.6 +*/1.7 +1.8 +#ifdef __cplusplus1.9 +extern "C" {1.10 +#endif1.11 +1.12 +#include "_ansi.h"1.13 +1.14 +#undef assert1.15 +1.16 +#ifdef NDEBUG /* required by ANSI standard */1.17 +#define assert(p) ((void)0)1.18 +#else1.19 +1.20 +#ifdef __STDC__1.21 +#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e))1.22 +#else /* PCC */1.23 +#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, "e"))1.24 +#endif1.25 +1.26 +#endif /* NDEBUG */1.27 +1.28 +void _EXFUN(__assert,(const char *, int, const char *));1.29 +1.30 +#ifdef __cplusplus1.31 +}1.32 +#endif
.