diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-02-20 16:47:39 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-02-20 16:47:39 +0000 |
commit | a5a39243b3a51c0187a108d325948155d0aa4fc0 (patch) | |
tree | f060b709384d7ea1bb3e6ce231d4d0c434d3b4ed /mdk-stage1/dietlibc/include/assert.h | |
parent | 7cbf0dbf5c98d10023125b06b5d4b737c246aacc (diff) | |
download | drakx-a5a39243b3a51c0187a108d325948155d0aa4fc0.tar drakx-a5a39243b3a51c0187a108d325948155d0aa4fc0.tar.gz drakx-a5a39243b3a51c0187a108d325948155d0aa4fc0.tar.bz2 drakx-a5a39243b3a51c0187a108d325948155d0aa4fc0.tar.xz drakx-a5a39243b3a51c0187a108d325948155d0aa4fc0.zip |
Merge with dietlibc 0.22-1mdk
Diffstat (limited to 'mdk-stage1/dietlibc/include/assert.h')
-rw-r--r-- | mdk-stage1/dietlibc/include/assert.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/include/assert.h b/mdk-stage1/dietlibc/include/assert.h index b135369b8..a8ce3ce87 100644 --- a/mdk-stage1/dietlibc/include/assert.h +++ b/mdk-stage1/dietlibc/include/assert.h @@ -22,10 +22,17 @@ extern void __assert_fail (const char *__assertion, const char *__file, #ifdef NDEBUG #define assert(expr) #else +#ifdef expect +# define assert(expr) \ + ((void) (expect((long)(expr),0) ? 0 : \ + (__assert_fail (#expr, \ + __FILE__, __LINE__, __ASSERT_FUNCTION), 0))) +#else # define assert(expr) \ ((void) ((expr) ? 0 : \ (__assert_fail (#expr, \ __FILE__, __LINE__, __ASSERT_FUNCTION), 0))) #endif +#endif #endif |