mirror of
https://github.com/odin-lang/Odin.git
synced 2026-05-25 13:18:14 +00:00
Add comment to os.exit
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user