From e83c3d0ae5dec854ef6e69d5268cd9a1b7745fd8 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 22 Sep 2006 19:33:11 +0000 Subject: 2006-09-22 Paul Brook * libc/include/sys/reent.h: Define and use __reent_assert. --- newlib/libc/include/sys/reent.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'newlib/libc/include/sys/reent.h') diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h index 7911b6cbc..3ef605828 100644 --- a/newlib/libc/include/sys/reent.h +++ b/newlib/libc/include/sys/reent.h @@ -459,8 +459,9 @@ struct _reent /* Only built the assert() calls if we are built with debugging. */ #if DEBUG #include +#define __reent_assert(x) assert(x) #else -#define assert(x) ((void)0) +#define __reent_assert(x) ((void)0) #endif /* Generic _REENT check macro. */ @@ -468,7 +469,7 @@ struct _reent struct _reent *_r = (var); \ if (_r->what == NULL) { \ _r->what = (type)malloc(size); \ - assert(_r->what); \ + __reent_assert(_r->what); \ init; \ } \ } while (0) -- cgit v1.2.3