mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 20:00:16 +02:00
This follows discussions from #3413. Followup commits add clang-format file, script and blame ignore lists.
13 lines
276 B
C++
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
|