JanetDocsSourcePlaygroundI'm feeling luckyCommunityGitHub sign in

os/exit

core-api


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

    (os/exit &opt x force)

    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. If `force` is 
    truthy will exit immediately and skip cleanup code.


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