mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 12:00:17 +02:00
Makes sure we mark everything internally linked as necessary, or make declarations visible to their implementation.
15 lines
327 B
C++
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
|