1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

Kernel: Tidy up the syscalls list by reorganizing the enumerator macro

This commit is contained in:
Andreas Kling 2020-08-04 13:00:50 +02:00
parent a619943001
commit 83a4fbf548
3 changed files with 154 additions and 169 deletions

View file

@ -36,14 +36,11 @@
#if !defined __ENUMERATE_SYSCALL
# define __ENUMERATE_SYSCALL(x) SC_##x,
#endif
#if !defined __ENUMERATE_REMOVED_SYSCALL
# define __ENUMERATE_REMOVED_SYSCALL(x)
#endif
#define SC_NARG 4
Syscall::Function syscall_table[] = {
ENUMERATE_SYSCALLS
ENUMERATE_SYSCALLS(__ENUMERATE_SYSCALL)
};
FlatPtr arg[SC_NARG];