added the isDebugBuild method

This commit is contained in:
Andrei Yankovich 2021-01-24 14:04:31 +03:00
parent 7106ed22d9
commit fcdda0b0af
4 changed files with 17 additions and 2 deletions

View File

@ -45,4 +45,4 @@ 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 2)
setVersion(1 4 3)

View File

@ -60,5 +60,5 @@ RESOURCES += \
include(Etalons/qmake/ccache.pri)
VERSION = 1.4.1
VERSION = 1.4.3

View File

@ -87,6 +87,14 @@ bool Params::isDebug() {
return getVerboseLvl() >= VerboseLvl::Debug;
}
bool Params::isDebugBuild() {
#ifdef QT_DEBUG
return true;
#else
return false;
#endif
}
void Params::showHelp() {
Help::print(getparamsHelp());
}

View File

@ -131,6 +131,13 @@ public:
*/
static bool isDebug();
/**
* @brief isDebugBuild This method return true if the library buildet in debug mode.
* @return true if this library buildet in debug mode.
*/
static bool isDebugBuild();
/**
* @brief size
* @return size of all params array