mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-13 06:43:35 +00:00
add exit to core:os
This commit is contained in:
@@ -428,3 +428,8 @@ _processor_core_count :: proc() -> int {
|
||||
haiku.get_system_info(&info)
|
||||
return int(info.cpu_count)
|
||||
}
|
||||
|
||||
exit :: proc "contextless" (code: int) -> ! {
|
||||
runtime._cleanup_runtime_contextless()
|
||||
_unix_exit(i32(code))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user