diff --git a/core/os/process.odin b/core/os/process.odin index 9a720af87..ef3b09fdd 100644 --- a/core/os/process.odin +++ b/core/os/process.odin @@ -38,7 +38,11 @@ delete_args :: proc "contextless" () { } /* -Exit the current process. +Tells the OS to exit the current process directly. + +IMPORTANT: `@(fini)` blocks won't be executed. + +If you want `@(fini)` cleanup to happen, call `runtime._cleanup_runtime` first. */ exit :: proc "contextless" (code: int) -> ! { runtime.exit(code)