2022-04-23 10:59:50 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2021-04-02 08:43:26 +02:00
|
|
|
|
|
|
|
#include "common/assert.h"
|
|
|
|
#include "common/common_funcs.h"
|
|
|
|
|
2021-04-15 01:07:40 +02:00
|
|
|
#include "common/settings.h"
|
2021-04-14 03:38:10 +02:00
|
|
|
|
2021-04-02 08:43:26 +02:00
|
|
|
void assert_handle_failure() {
|
2021-04-14 03:38:10 +02:00
|
|
|
if (Settings::values.use_debug_asserts) {
|
|
|
|
Crash();
|
|
|
|
}
|
2021-04-02 08:43:26 +02:00
|
|
|
}
|