mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-09 15:00:21 +02:00
It is not an external component, and it makes paths needlessly long. Ryan seemed amenable to this when we discussed on IRC earlier. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
15 lines
231 B
C++
15 lines
231 B
C++
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
|
|
}
|
|
}
|
|
|
|
|