Os.exit: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Calls the C function exit, with an optional code, to terminate the host program. The default value for..."
 
No edit summary
Line 4: Line 4:
Calls the C function exit, with an optional code, to terminate the host program. The default value for code is the success code.
Calls the C function exit, with an optional code, to terminate the host program. The default value for code is the success code.
<source lang="lua">
<source lang="lua">
= os.exit(code,)
os.exit(code)
</source>
</source>
'''code:''' (string) exit code '''optional'''<br/>
'''code''': (string) exit code '''optional'''<br/>

Revision as of 09:19, 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)

code: (string) exit code optional