mdbx: fix extra-logging without NDEBUG, but with MDBX_DEBUG=0.

This commit is contained in:
Leo Yuriev 2017-05-19 00:31:54 +03:00
parent 0810f4e105
commit d9eeac45b2

View File

@ -679,14 +679,14 @@ void mdbx_panic(const char *fmt, ...)
#define mdbx_debug_enabled(type) \
unlikely(mdbx_runtime_flags &(type & (MDBX_DBG_TRACE | MDBX_DBG_EXTRA)))
#else
#ifndef NDEBUG
#define mdbx_debug_enabled(type) (1)
#else
#define mdbx_debug_enabled(type) (0)
#endif /* NDEBUG */
#define mdbx_audit_enabled() (0)
#ifndef NDEBUG
#define mdbx_assert_enabled() (1)
#else
#define mdbx_assert_enabled() (0)
#endif /* NDEBUG */
#endif /* MDB_DEBUG */
#define mdbx_print(fmt, ...) \