Difference between revisions of "Os.exit"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[os]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/os|os]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<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>
+
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>
=== <translate>Parameters</translate> ===
+
 
'''code''': (string) <translate>exit code</translate> '''optional'''<br/>
+
=== Parameters ===
 +
'''code''': (string) exit code '''optional'''<br/>
  
 
{{Os}}
 
{{Os}}

Revision as of 00:31, 29 October 2022

Available since: Gideros 2011.6
Class: os

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