mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-30 07:23:07 +03:00
Introduced WSREP_ASSERT() for public headers.
Public headers may be compiled with different preprocessor options than compilation units or private headers within a project. Introduced a macro WSREP_ASSERT() to be mainly used in public headers. The macro can be enabled by defining WSREP_LIB_HAVE_DEBUG and is enabled by default for Debug type builds.
This commit is contained in:
@ -84,6 +84,7 @@ endif()
|
||||
# Enable extra libstdc++ assertions with debug build.
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
add_definitions("-D_GLIBCXX_ASSERTIONS")
|
||||
add_definitions("-DWSREP_LIB_HAVE_DEBUG")
|
||||
else()
|
||||
# Make sure that NDEBUG is enabled in release builds even
|
||||
# if the parent project does not define it.
|
||||
|
Reference in New Issue
Block a user