Type Function Library os.* Return value none Revision 2019.3459 Keywords exit, quit, exit app, quit app See also os.execute() native.requestExit()
This is a low level Lua call that should not be used on any platform. Use native.requestExit() instead (other than on iOS which does not permit apps to terminate themselves).
Calls the C function
exit(), with an optional code, to terminate the host program. The default value for code is the success code.
os.exit( [ exit ] )
Number. Optional parameter that returns the exit code to the OS.
This is not the API you are looking for. Use native.requestExit() instead.