summaryrefslogtreecommitdiffstats
path: root/src/common/assert.cpp
diff options
context:
space:
mode:
authorFearlessTobi <thm.frey@gmail.com>2023-12-25 13:50:22 +0100
committerFearlessTobi <thm.frey@gmail.com>2023-12-26 10:35:14 +0100
commit4f569fd568590b43cd8d924a6abf3c13632a098a (patch)
tree8351b6afbd99abb2538286e5bd110317c5d5422e /src/common/assert.cpp
parentMerge pull request #12394 from liamwhite/per-process-memory (diff)
downloadyuzu-4f569fd568590b43cd8d924a6abf3c13632a098a.tar
yuzu-4f569fd568590b43cd8d924a6abf3c13632a098a.tar.gz
yuzu-4f569fd568590b43cd8d924a6abf3c13632a098a.tar.bz2
yuzu-4f569fd568590b43cd8d924a6abf3c13632a098a.tar.lz
yuzu-4f569fd568590b43cd8d924a6abf3c13632a098a.tar.xz
yuzu-4f569fd568590b43cd8d924a6abf3c13632a098a.tar.zst
yuzu-4f569fd568590b43cd8d924a6abf3c13632a098a.zip
Diffstat (limited to 'src/common/assert.cpp')
-rw-r--r--src/common/assert.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/assert.cpp b/src/common/assert.cpp
index 6026b7dc2..e2c2cade3 100644
--- a/src/common/assert.cpp
+++ b/src/common/assert.cpp
@@ -3,16 +3,19 @@
#include "common/assert.h"
#include "common/common_funcs.h"
+#include "common/logging/backend.h"
#include "common/settings.h"
void assert_fail_impl() {
if (Settings::values.use_debug_asserts) {
+ Common::Log::Stop();
Crash();
}
}
[[noreturn]] void unreachable_impl() {
+ Common::Log::Stop();
Crash();
throw std::runtime_error("Unreachable code");
}