mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-21 10:55:03 +00:00
20 lines
468 B
C++
20 lines
468 B
C++
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "common/assert.h"
|
|
#include "common/logging/backend.h"
|
|
|
|
#define Crash() __asm__ __volatile__("int $3")
|
|
|
|
void assert_fail_impl() {
|
|
Common::Log::Stop();
|
|
std::fflush(stdout);
|
|
Crash();
|
|
}
|
|
|
|
[[noreturn]] void unreachable_impl() {
|
|
Common::Log::Stop();
|
|
std::fflush(stdout);
|
|
Crash();
|
|
throw std::runtime_error("Unreachable code");
|
|
}
|