mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* global.h: Define NDEBUG (used by assert() depending on
MC_ENABLE_DEBUGGING_CODE).
This commit is contained in:
parent
957f3d180d
commit
413ed3236e
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user