v 1.4.5 "added description for the debug assert macross "

This commit is contained in:
Andrei Yankovich 2021-03-22 19:55:56 +03:00
parent a0676fbc84
commit e06d6d3634
3 changed files with 11 additions and 4 deletions

View File

@ -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)

View File

@ -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 += \

View File

@ -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