From e06d6d363422ce71749bff7833dda29fe9fc8d64 Mon Sep 17 00:00:00 2001 From: EndrII Date: Mon, 22 Mar 2021 19:55:56 +0300 Subject: [PATCH] v 1.4.5 "added description for the debug assert macross " --- CMakeLists.txt | 2 +- QuasarApp.pro | 2 +- global.h | 11 +++++++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 86284df..7078c4d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/QuasarApp.pro b/QuasarApp.pro index ac92392..30373e7 100644 --- a/QuasarApp.pro +++ b/QuasarApp.pro @@ -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 += \ diff --git a/global.h b/global.h index c13bc8e..78ccefd 100644 --- a/global.h +++ b/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