summaryrefslogtreecommitdiffstats
path: root/src/common/assert.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/assert.cpp')
-rw-r--r--src/common/assert.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/common/assert.cpp b/src/common/assert.cpp
index 1a85faccf..6026b7dc2 100644
--- a/src/common/assert.cpp
+++ b/src/common/assert.cpp
@@ -6,13 +6,9 @@
#include "common/settings.h"
-void assert_check_condition(bool cond, std::function<void()>&& on_failure) {
- if (!cond) [[unlikely]] {
- on_failure();
-
- if (Settings::values.use_debug_asserts) {
- Crash();
- }
+void assert_fail_impl() {
+ if (Settings::values.use_debug_asserts) {
+ Crash();
}
}