Files
FEX-Emu--FEX/FEXCore/Source/Utils/ForcedAssert.cpp
T
LC c5eddd922d FEXCore: Resolve missing prototype warnings
Makes sure we mark everything internally linked as necessary, or make
declarations visible to their implementation.
2026-07-17 02:48:45 -04:00

15 lines
327 B
C++

// SPDX-License-Identifier: MIT
#include <FEXCore/Utils/CompilerDefs.h>
namespace FEXCore::Assert {
// This function can not be inlined
[[noreturn]]
__attribute__((noinline, naked)) void ForcedAssert() {
#ifdef ARCHITECTURE_x86_64
asm volatile("ud2");
#else
asm volatile("hlt #1");
#endif
}
} // namespace FEXCore::Assert