mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-05-07 06:59:44 +00:00
change behavior of the log
This commit is contained in:
parent
afb0ef5fd8
commit
f06e1e290a
10
params.cpp
10
params.cpp
@ -50,8 +50,13 @@ void Params::log(const QString &log, VerboseLvl vLvl) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef QA_ASSERT_ON_ERROR
|
#ifdef QA_ASSERT_ON_ERROR
|
||||||
|
#ifdef __GNUC__
|
||||||
|
__builtin_trap();
|
||||||
|
#else
|
||||||
debug_assert(false, "You requested to throw assert in every error message."
|
debug_assert(false, "You requested to throw assert in every error message."
|
||||||
" See The ASSERT_ON_ERROR option in cmake config.");
|
" See The ASSERT_ON_ERROR option in cmake config.");
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -64,8 +69,13 @@ void Params::log(const QString &log, VerboseLvl vLvl) {
|
|||||||
|
|
||||||
|
|
||||||
#ifdef QA_ASSERT_ON_WARN
|
#ifdef QA_ASSERT_ON_WARN
|
||||||
|
#ifdef __GNUC__
|
||||||
|
__builtin_trap();
|
||||||
|
#else
|
||||||
debug_assert(false, "You requested to throw assert in every warning message."
|
debug_assert(false, "You requested to throw assert in every warning message."
|
||||||
" See The ASSERT_ON_ERROR option in cmake config.");
|
" See The ASSERT_ON_ERROR option in cmake config.");
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user