JanetDocsPlaygroundI'm feeling luckyGitHub sign in

os/exit



    cfunction
    src/core/os.c on line 197, column 1

    (os/exit &opt x)

    Exit from janet with an exit code equal to x. If x is not an 
    integer, the exit with status equal the hash of x.


1 exampleSign in to add an example
Loading...
$ janet -e '(os/exit 42)' ; echo $?
42
cellularmitosisPlayground