* global.h: Define NDEBUG (used by assert() depending on

MC_ENABLE_DEBUGGING_CODE).
This commit is contained in:
Roland Illig 2005-04-26 19:42:37 +00:00
parent 957f3d180d
commit 413ed3236e
2 changed files with 9 additions and 0 deletions

View File

@ -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 <roland.illig@gmx.de>

View File

@ -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 <assert.h>
#endif