mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-23 17:13:13 -05:00
C symbols in Mach-O carry a leading underscore, and its assembler has no .type or .size directives. APS5_ASM_SYMBOL names a symbol the way the assembler of the host expects it, APS5_ASM_FUNCTION_END closes a function (.size on ELF, nothing elsewhere), and APS5_ASM_FUNCTION defines a global function on macOS. The fiber stack switch, the signal mask helpers, getcontext and their tests use them instead of writing the ELF spelling. The assembly they produce on Linux and Windows is the same as before.