mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-04-26 17:54:40 +00:00
added the isDebugBuild method
This commit is contained in:
parent
7106ed22d9
commit
fcdda0b0af
@ -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)
|
||||
|
@ -60,5 +60,5 @@ RESOURCES += \
|
||||
|
||||
include(Etalons/qmake/ccache.pri)
|
||||
|
||||
VERSION = 1.4.1
|
||||
VERSION = 1.4.3
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
7
params.h
7
params.h
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user