pub fn exit(code: option<any>, close: option<boolean>)Expand description
Terminates the host program.
§Parameters
code: true for a successful exit (the default), false for a failure exit, or a numeric return code.close: when true, closes the Lua state before exiting, running finalizers and to-be-closed variables.
§Description
Calls the ISO C function exit to terminate the host program. This
function never returns.
§Examples
if not config_ok then
io.write("bad configuration\n")
os.exit(1)
end