mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 05:18:21 +08:00
mdbx: fix extra-logging without NDEBUG, but with MDBX_DEBUG=0.
This commit is contained in:
parent
0810f4e105
commit
d9eeac45b2
@ -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, ...) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user