aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoravanspector <avanspector@gmail.com>2024-02-28 22:43:55 +0100
committeravanspector <avanspector@gmail.com>2024-02-28 22:43:55 +0100
commit290ada7f903e95fc3a7ed81e98c0e1d5ca0708ba (patch)
tree3613201de37e76feceb77efc72fde06c9e943463
parentbf37bee4f709945cab268f3c4cca581354849ec5 (diff)
add exit to core:os
-rw-r--r--core/os/os_haiku.odin5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/os/os_haiku.odin b/core/os/os_haiku.odin
index 2151e7e9a..06052fc42 100644
--- a/core/os/os_haiku.odin
+++ b/core/os/os_haiku.odin
@@ -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))
+}