mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-07 16:00:18 +02:00
16 lines
263 B
C++
16 lines
263 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
|
|
}
|
|
}
|
|
|
|
|