Syscalls: Add a wrapping class for better backtrace

This commit is contained in:
Stefanos Kornilios Mitsis Poiitidis committed 2020-06-25 14:29:02 +03:00
1 parent 8e95d502f3
commit 4e515abb33
1 file changed
+2 -1
+2 -1
View File
@@ -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
/////