summaryrefslogtreecommitdiff
path: root/src/common/assert.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/assert.cpp')
-rw-r--r--src/common/assert.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common/assert.cpp b/src/common/assert.cpp
new file mode 100644
index 000000000..72f1121aa
--- /dev/null
+++ b/src/common/assert.cpp
@@ -0,0 +1,14 @@
1// Copyright 2021 yuzu Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#include "common/assert.h"
6#include "common/common_funcs.h"
7
8#include "common/settings.h"
9
10void assert_handle_failure() {
11 if (Settings::values.use_debug_asserts) {
12 Crash();
13 }
14}