mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
all: support [noreturn] fn abc() { for{} }
, mark panic/1 and exit/1with it too. (#10654)
This commit is contained in:
parent
b0b4b8e65b
commit
6aecda3be8
23 changed files with 318 additions and 22 deletions
|
@ -303,8 +303,10 @@ fn sys_execve(filename &byte, argv []&byte, envp []&byte) int {
|
|||
}
|
||||
|
||||
// 60 sys_exit
|
||||
[noreturn]
|
||||
fn sys_exit(ec int) {
|
||||
sys_call1(60, u64(ec))
|
||||
for {}
|
||||
}
|
||||
|
||||
// 102 sys_getuid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue