mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-15 19:35:26 +00:00
55855b4195
* core: Implement new memory manager * ci: Attempt to fix linux build * code: Fix a few build errors
20 lines
443 B
C++
20 lines
443 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();
|
|
Crash();
|
|
throw std::runtime_error("Unreachable code");
|
|
}
|