mirror of
https://github.com/justinian/jsix.git
synced 2025-12-09 16:04:32 -08:00
[kernel] Add "noreturn" syscall option
The new "noreturn" option tag on syscall methods causes those methods to be generated with [[noreturn]] / _Noreturn to avoid clang complaining that other functions marked noreturn, like exit(), because it can't tell that the syscall never returns.
This commit is contained in:
@@ -18,7 +18,7 @@ object process : object {
|
||||
method kill [destructor cap:kill]
|
||||
|
||||
# Stop all threads and exit the current process
|
||||
method exit [static] {
|
||||
method exit [static noreturn] {
|
||||
param result int32 # The result to retrun to the parent process
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user