From 167217bec15c9c7aa70ba2a3dc9c689b3cd91872 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 14 May 2001 14:19:32 +0000 Subject: import new version of dietlibc --- mdk-stage1/dietlibc/include/assert.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mdk-stage1/dietlibc/include/assert.h') diff --git a/mdk-stage1/dietlibc/include/assert.h b/mdk-stage1/dietlibc/include/assert.h index adf956022..bb573d0f2 100644 --- a/mdk-stage1/dietlibc/include/assert.h +++ b/mdk-stage1/dietlibc/include/assert.h @@ -15,9 +15,13 @@ extern void __assert_fail (__const char *__assertion, __const char *__file, #endif #undef assert +#ifdef NDEBUG +#define assert(expr) +#else # define assert(expr) \ ((void) ((expr) ? 0 : \ (__assert_fail (#expr, \ __FILE__, __LINE__, __ASSERT_FUNCTION), 0))) +#endif #endif -- cgit v1.2.1