Home  Contents

os.exit

OS Lua Commands

SYNOPSIS

os.exit([code])

DESCRIPTION

Calls the C function exit, with an optional code, to terminate the host program. The default value for code is the success code.

EXAMPLE

os.exit()