2022-04-23 08:59:50 +00:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2021-04-02 06:43:26 +00:00
|
|
|
|
|
|
|
#include "common/assert.h"
|
|
|
|
#include "common/common_funcs.h"
|
|
|
|
|
2021-04-14 23:07:40 +00:00
|
|
|
#include "common/settings.h"
|
2021-04-14 01:38:10 +00:00
|
|
|
|
2022-06-12 22:11:02 +00:00
|
|
|
void assert_fail_impl() {
|
|
|
|
if (Settings::values.use_debug_asserts) {
|
|
|
|
Crash();
|
2021-04-14 01:38:10 +00:00
|
|
|
}
|
2021-04-02 06:43:26 +00:00
|
|
|
}
|
2022-06-07 21:02:29 +00:00
|
|
|
|
|
|
|
[[noreturn]] void unreachable_impl() {
|
|
|
|
Crash();
|
|
|
|
throw std::runtime_error("Unreachable code");
|
|
|
|
}
|