mdbx: check assertions depending on NDEBUG.

Change-Id: I0c8ce98242e7451dd82f8abfbac70b2f4dcfa7a0
This commit is contained in:
Leo Yuriev 2016-08-18 15:35:21 +03:00
parent 9407621eba
commit 7cfcc9ff7a

6
mdb.c
View File

@ -1251,7 +1251,11 @@ static txnid_t mdbx_oomkick(MDB_env *env, txnid_t oldest);
(type & (MDBX_DBG_TRACE | MDBX_DBG_EXTRA)))
#else
# define mdb_debug_enabled(type) (0)
# ifndef NDEBUG
# define mdb_debug_enabled(type) (1)
# else
# define mdb_debug_enabled(type) (0)
# endif
# define mdb_audit_enabled() (0)
# define mdb_assert_enabled() (0)
# define mdb_assert_fail(env, msg, func, line) \