Difference between revisions of "Os.exit"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
− | Calls the C function exit, with an optional code, to terminate the host program. The default value for code is the success code. | + | <translate>Calls the C function exit, with an optional code, to terminate the host program. The default value for code is the success code.</translate> |
<source lang="lua"> | <source lang="lua"> | ||
os.exit(code) | os.exit(code) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''code''': (string) exit code '''optional'''<br/> | + | '''code''': (string) <translate>exit code</translate> '''optional'''<br/> |
Revision as of 13:33, 23 August 2018
Available since: Gideros 2011.6
Description
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(code)
Parameters
code: (string) exit code optional