diff options
Diffstat (limited to 'src/common/assert.cpp')
| -rw-r--r-- | src/common/assert.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/assert.cpp b/src/common/assert.cpp index d7d91b96b..4f599af55 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 "core/settings.h" | ||
| 9 | |||
| 9 | void assert_handle_failure() { | 10 | void assert_handle_failure() { |
| 10 | Crash(); | 11 | if (Settings::values.use_debug_asserts) { |
| 12 | Crash(); | ||
| 13 | } | ||
| 11 | } | 14 | } |