mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
wasi: implement os.exit
This commit is contained in:
parent
6fb677c4f6
commit
84682eb862
@ -245,6 +245,9 @@ pub fn exit(status: u8) noreturn {
|
||||
Os.windows => {
|
||||
windows.ExitProcess(status);
|
||||
},
|
||||
Os.wasi => {
|
||||
wasi.proc_exit(status);
|
||||
},
|
||||
else => @compileError("Unsupported OS"),
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user