From 4e515abb33123b2c25f6652c508d0d99eb68209a Mon Sep 17 00:00:00 2001 From: Stefanos Kornilios Mitsis Poiitidis Date: Thu, 25 Jun 2020 14:29:02 +0300 Subject: [PATCH] Syscalls: Add a wrapping class for better backtrace --- External/FEXCore/Source/Interface/HLE/x64/Syscalls.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 /////