mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 04:46:27 -05:00
cdbdf63ebe
This reverts merge request !17
21 lines
493 B
C++
21 lines
493 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/logging/backend.h"
|
|
|
|
#include "common/settings.h"
|
|
|
|
void assert_fail_impl() {
|
|
if (Settings::values.use_debug_asserts) {
|
|
Common::Log::Stop();
|
|
Crash();
|
|
}
|
|
}
|
|
|
|
[[noreturn]] void unreachable_impl() {
|
|
Common::Log::Stop();
|
|
Crash();
|
|
throw std::runtime_error("Unreachable code");
|
|
}
|