summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/include/assert.h
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-02-20 16:47:39 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-02-20 16:47:39 +0000
commita5a39243b3a51c0187a108d325948155d0aa4fc0 (patch)
treef060b709384d7ea1bb3e6ce231d4d0c434d3b4ed /mdk-stage1/dietlibc/include/assert.h
parent7cbf0dbf5c98d10023125b06b5d4b737c246aacc (diff)
downloaddrakx-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.h7
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