mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-04-26 17:54:40 +00:00
v 1.4.5 "added description for the debug assert macross "
This commit is contained in:
parent
a0676fbc84
commit
e06d6d3634
@ -45,7 +45,7 @@ add_library(${PROJECT_NAME} ${SOURCE_CPP})
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE Qt::Core)
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
setVersion(1 4 4)
|
||||
setVersion(1 4 5)
|
||||
|
||||
initAll()
|
||||
addDoc(${PROJECT_NAME}Docs ${CMAKE_CURRENT_SOURCE_DIR}/doxygen.conf)
|
||||
|
@ -60,7 +60,7 @@ RESOURCES += \
|
||||
|
||||
include(Etalons/qmake/ccache.pri)
|
||||
|
||||
VERSION = 1.4.4
|
||||
VERSION = 1.4.5
|
||||
|
||||
# Add empty target for CI system
|
||||
QMAKE_EXTRA_TARGETS += \
|
||||
|
11
global.h
11
global.h
@ -131,9 +131,16 @@ uint8_t static_type_hash_8(T& object) noexcept {
|
||||
|
||||
|
||||
#ifdef RELEASE_BUILD
|
||||
#define debug_assert(condition)
|
||||
// The debug_assert it is assert that abort application only in debug mode.
|
||||
// In the release mode This assert prin Error message only.
|
||||
#define debug_assert(condition, msg) \
|
||||
if (!condition) \
|
||||
QuasarAppLib:params::log(msg, QuasarAppLib::Error);
|
||||
|
||||
#else
|
||||
#define debug_assert(condition) assert(condition)
|
||||
// The debug_assert it is assert that abort application only in debug mode.
|
||||
// In the release mode This assert prin Error message only.
|
||||
#define debug_assert(condition, msg) assert(condition && msg)
|
||||
#endif
|
||||
|
||||
#endif // GLOBAL_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user