diff --git a/External/FEXCore/Source/Interface/HLE/x64/Syscalls.h b/External/FEXCore/Source/Interface/HLE/x64/Syscalls.h index 10eb7a94c..0278af271 100644 --- a/External/FEXCore/Source/Interface/HLE/x64/Syscalls.h +++ b/External/FEXCore/Source/Interface/HLE/x64/Syscalls.h @@ -105,7 +105,8 @@ bool RegisterSyscall(int num, const char *name, F f){ } // Helper to register a syscall implementation -#define REGISTER_SYSCALL_IMPL(name, lambda) do { RegisterSyscall(x64::SYSCALL_x64_##name, #name, lambda); } while(0) + +#define REGISTER_SYSCALL_IMPL(name, lambda) struct impl_##name { impl_##name() { RegisterSyscall(x64::SYSCALL_x64_##name, #name, lambda); } } impl_##name /////