From 413ed3236ef19f6753cc5624bf8114fa29cce38f Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Tue, 26 Apr 2005 19:42:37 +0000 Subject: [PATCH] * global.h: Define NDEBUG (used by assert() depending on MC_ENABLE_DEBUGGING_CODE). --- src/ChangeLog | 2 ++ src/global.h | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 36f24a4da..a6af08bce 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -2,6 +2,8 @@ * view.c: Added some calls to str_unconst() to get rid of the GCC warnings. + * global.h: Define NDEBUG (used by assert() depending on + MC_ENABLE_DEBUGGING_CODE). 2005-04-25 Roland Illig diff --git a/src/global.h b/src/global.h index 9f0e7062d..e480c63cd 100644 --- a/src/global.h +++ b/src/global.h @@ -190,4 +190,11 @@ void refresh_screen (void *); /* C++ style type casts */ #define const_cast(m_type, m_expr) ((m_type) (m_expr)) +#ifdef MC_ENABLE_DEBUGGING_CODE +# undef NDEBUG +#else +# define NDEBUG +#endif +#include + #endif