Browse Source

add exit to core:os

avanspector 1 year ago
parent
commit
290ada7f90
1 changed files with 5 additions and 0 deletions
  1. 5 0
      core/os/os_haiku.odin

+ 5 - 0
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))
+}