summaryrefslogtreecommitdiff
path: root/src/common/assert.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2021-04-14 17:47:18 -0700
committerGravatar GitHub2021-04-14 17:47:18 -0700
commitde5bf640b7309450357074083a9ac397f251adbc (patch)
treee7c9b9845f7751c2cc4a00dbf05798ff2a69490d /src/common/assert.cpp
parentMerge pull request #6197 from ameerj/kreslimit-cleanup (diff)
parentcommon: Move settings to common from core. (diff)
downloadyuzu-de5bf640b7309450357074083a9ac397f251adbc.tar.gz
yuzu-de5bf640b7309450357074083a9ac397f251adbc.tar.xz
yuzu-de5bf640b7309450357074083a9ac397f251adbc.zip
Merge pull request #6196 from bunnei/asserts-setting
core: settings: Add setting for debug assertions and disable by default.
Diffstat (limited to 'src/common/assert.cpp')
-rw-r--r--src/common/assert.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/assert.cpp b/src/common/assert.cpp
index d7d91b96b..72f1121aa 100644
--- a/src/common/assert.cpp
+++ b/src/common/assert.cpp
@@ -3,9 +3,12 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/assert.h" 5#include "common/assert.h"
6
7#include "common/common_funcs.h" 6#include "common/common_funcs.h"
8 7
8#include "common/settings.h"
9
9void assert_handle_failure() { 10void assert_handle_failure() {
10 Crash(); 11 if (Settings::values.use_debug_asserts) {
12 Crash();
13 }
11} 14}