Difference between revisions of "Os.exit"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Available since:''' Gideros 2011.6<br/>
=== <translate>Description</translate> ===
+
'''Class:''' [[os]]<br/>
<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">
+
=== Description ===
os.exit(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>
+
<syntaxhighlight lang="lua">
=== <translate>Parameters</translate> ===
+
os.exit(code)
'''code''': (string) <translate>exit code</translate> '''optional'''<br/>
+
</syntaxhighlight>
 +
 
 +
=== Parameters ===
 +
'''code''': (string) exit code '''optional'''<br/>
 +
 
 +
{{Os}}

Latest revision as of 14:32, 13 July 2023

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