Difference between revisions of "Os.exit"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== 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.
 
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">
+
<syntaxhighlight lang="lua">
 
os.exit(code)
 
os.exit(code)
 
</source>
 
</source>

Revision as of 14:30, 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. <syntaxhighlight lang="lua"> os.exit(code) </source>

Parameters

code: (string) exit code optional