Ignore:
Timestamp:
Aug 30, 2018, 10:26:27 PM (3 years ago)
Author:
viala@…
Message:

Rewrite if-then-else return function into switch case.

For safety reason and performance:

1) Safety: GCC complain with a warning if you forgot an enum variant.
2) code-gen just outperform naive if-then-else.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/syscalls/syscalls.h

    r506 r527  
    3737
    3838// debug:
    39 const char * syscall_str( uint32_t index );
     39const char * syscall_str( syscalls_t index );
    4040
    4141/******************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.