Files
FEX-Emu--FEX/FEXCore/Source/Utils/ForcedAssert.cpp
T
Paulo Matos 2b4ec88dae Whole-tree reformat
This follows discussions from #3413.
Followup commits add clang-format file, script and blame ignore lists.
2024-04-12 16:26:02 +02:00

13 lines
276 B
C++

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