// 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"); }