change behavior of the log

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

View File

@ -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;
} }