mirror of
https://github.com/isar/libmdbx.git
synced 2025-11-07 07:18:56 +08:00
mdbx-build: rearrange source files, rework CMakeLists.txt and refine GNUMakefile (squashed).
Change-Id: Id73d346695011dab2f670bb9e6293a1e5a1835ca
This commit is contained in:
34
src/debug_begin.h
Normal file
34
src/debug_begin.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#pragma push_macro("mdbx_trace")
|
||||
#pragma push_macro("mdbx_debug")
|
||||
#pragma push_macro("mdbx_verbose")
|
||||
#pragma push_macro("mdbx_notice")
|
||||
#pragma push_macro("mdbx_warning")
|
||||
#pragma push_macro("mdbx_error")
|
||||
#pragma push_macro("mdbx_assert")
|
||||
|
||||
#undef mdbx_trace
|
||||
#define mdbx_trace(fmt, ...) \
|
||||
mdbx_debug_log(MDBX_LOG_TRACE, __func__, __LINE__, fmt "\n", __VA_ARGS__)
|
||||
|
||||
#undef mdbx_debug
|
||||
#define mdbx_debug(fmt, ...) \
|
||||
mdbx_debug_log(MDBX_LOG_DEBUG, __func__, __LINE__, fmt "\n", __VA_ARGS__)
|
||||
|
||||
#undef mdbx_verbose
|
||||
#define mdbx_verbose(fmt, ...) \
|
||||
mdbx_debug_log(MDBX_LOG_VERBOSE, __func__, __LINE__, fmt "\n", __VA_ARGS__)
|
||||
|
||||
#undef mdbx_notice
|
||||
#define mdbx_notice(fmt, ...) \
|
||||
mdbx_debug_log(MDBX_LOG_NOTICE, __func__, __LINE__, fmt "\n", __VA_ARGS__)
|
||||
|
||||
#undef mdbx_warning
|
||||
#define mdbx_warning(fmt, ...) \
|
||||
mdbx_debug_log(MDBX_LOG_WARN, __func__, __LINE__, fmt "\n", __VA_ARGS__)
|
||||
|
||||
#undef mdbx_error
|
||||
#define mdbx_error(fmt, ...) \
|
||||
mdbx_debug_log(MDBX_LOG_ERROR, __func__, __LINE__, fmt "\n", __VA_ARGS__)
|
||||
|
||||
#undef mdbx_assert
|
||||
#define mdbx_assert(env, expr) mdbx_ensure(env, expr)
|
||||
Reference in New Issue
Block a user