From 83a4fbf5481322989e2e4a83a13a3fc570130c9a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 4 Aug 2020 13:00:50 +0200 Subject: Kernel: Tidy up the syscalls list by reorganizing the enumerator macro --- Kernel/Syscall.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Kernel/Syscall.cpp') diff --git a/Kernel/Syscall.cpp b/Kernel/Syscall.cpp index b656e9905d..43370594e5 100644 --- a/Kernel/Syscall.cpp +++ b/Kernel/Syscall.cpp @@ -76,13 +76,11 @@ void initialize() #pragma GCC diagnostic ignored "-Wcast-function-type" typedef int (Process::*Handler)(u32, u32, u32); -#define __ENUMERATE_REMOVED_SYSCALL(x) nullptr, #define __ENUMERATE_SYSCALL(x) reinterpret_cast(&Process::sys$##x), static Handler s_syscall_table[] = { - ENUMERATE_SYSCALLS + ENUMERATE_SYSCALLS(__ENUMERATE_SYSCALL) }; #undef __ENUMERATE_SYSCALL -#undef __ENUMERATE_REMOVED_SYSCALL int handle(RegisterState& regs, u32 function, u32 arg1, u32 arg2, u32 arg3) { -- cgit v1.2.3