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