Skip to main content
Version: v0.21.0

OS

Module Function

exit(INTEGER)

Returns ``

Terminates the program with the given exit code.

OS.exit(1)
Output
exit status 1

raise(INTEGER, STRING)

Returns ``

Terminates the program with the given exit code and prints the error message.

OS.raise(1, "broken")
Output
🔥 RocketLang raised an error: "broken"
exit status 1

Properties

NameValue