4
0
mirror of https://github.com/QuasarApp/QuasarAppLib.git synced 2025-05-03 13:09:41 +00:00

change behavior of the log

This commit is contained in:
Andrei Yankovich 2022-12-23 22:32:11 +03:00
parent afb0ef5fd8
commit f06e1e290a

@ -50,8 +50,13 @@ void Params::log(const QString &log, VerboseLvl vLvl) {
#endif
#ifdef QA_ASSERT_ON_ERROR
#ifdef __GNUC__
__builtin_trap();
#else
debug_assert(false, "You requested to throw assert in every error message."
" See The ASSERT_ON_ERROR option in cmake config.");
#endif
#endif
break;
@ -64,8 +69,13 @@ void Params::log(const QString &log, VerboseLvl vLvl) {
#ifdef QA_ASSERT_ON_WARN
#ifdef __GNUC__
__builtin_trap();
#else
debug_assert(false, "You requested to throw assert in every warning message."
" See The ASSERT_ON_ERROR option in cmake config.");
#endif
#endif
break;
}