mdbx: fix mdbx_runtime_flags for ALLOY-build.

Change-Id: I16a7e3475043066cea7733ed31b7e5d5a5824516
This commit is contained in:
Leonid Yuriev 2019-11-18 11:50:21 +03:00
parent 497aa53e28
commit f285ab59e6

View File

@ -978,12 +978,13 @@ struct MDBX_env {
#define MDBX_RUNTIME_FLAGS_INIT \ #define MDBX_RUNTIME_FLAGS_INIT \
((MDBX_DEBUG) > 0) * MDBX_DBG_ASSERT + ((MDBX_DEBUG) > 1) * MDBX_DBG_AUDIT ((MDBX_DEBUG) > 0) * MDBX_DBG_ASSERT + ((MDBX_DEBUG) > 1) * MDBX_DBG_AUDIT
#ifndef mdbx_runtime_flags /* avoid override from tools */ #ifdef MDBX_ALLOY
MDBX_INTERNAL_VAR uint8_t mdbx_runtime_flags; static uint8_t mdbx_runtime_flags = MDBX_RUNTIME_FLAGS_INIT;
#endif static uint8_t mdbx_loglevel = MDBX_DEBUG;
#ifndef mdbx_runtime_flags /* avoid override from tools */ #else
MDBX_INTERNAL_VAR uint8_t mdbx_loglevel; extern uint8_t mdbx_runtime_flags;
#endif extern uint8_t mdbx_loglevel;
#endif /* MDBX_ALLOY */
MDBX_INTERNAL_VAR MDBX_debug_func *mdbx_debug_logger; MDBX_INTERNAL_VAR MDBX_debug_func *mdbx_debug_logger;
MDBX_INTERNAL_FUNC void mdbx_debug_log(int type, const char *function, int line, MDBX_INTERNAL_FUNC void mdbx_debug_log(int type, const char *function, int line,