Add comment to os.exit

This commit is contained in:
Jeroen van Rijn
2026-04-08 10:17:43 +02:00
parent a2ff9d076c
commit e558f9852e

View File

@@ -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)