mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-27 00:21:20 -08:00
19 lines
403 B
C++
19 lines
403 B
C++
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "common/assert.h"
|
|
#include "common/common_funcs.h"
|
|
|
|
#include "common/settings.h"
|
|
|
|
void assert_fail_impl() {
|
|
if (Settings::values.use_debug_asserts) {
|
|
Crash();
|
|
}
|
|
}
|
|
|
|
[[noreturn]] void unreachable_impl() {
|
|
Crash();
|
|
throw std::runtime_error("Unreachable code");
|
|
}
|