Difference between revisions of "Os.exit"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2011.6<br/>
+
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<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>
 
<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 ===
+
=== <translate>Parameters</translate> ===
 
'''code''': (string) <translate>exit code</translate> '''optional'''<br/>
 
'''code''': (string) <translate>exit code</translate> '''optional'''<br/>

Revision as of 07:28, 24 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