OxL Reference

fn exit

Terminates the process with code (output is flushed).

Example:

oxl✓ checked in CI
use std.os { exit }

fn main() io {
  print("fatal: no configuration")
  exit(0)
}
Output
fatal: no configuration
@intrinsic("os.exit") pub(api) fn exit(code: i32) -> never  io

Since. 1.0.0-beta

Parameters

NameType
codei32

Returns

never

Effects

io

Defined in: std/os/os.oxl:46

See also