Difference between revisions of "NXSL:exit"

Jump to navigation Jump to search
352 bytes added ,  16:13, 13 September 2022
m
Text replacement - "^" to "{{deprecated}}"
(Created page with "Exit from script.")
 
m (Text replacement - "^" to "{{deprecated}}")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Exit from script.
{{deprecated}}__NOTOC__
Exit from script. This function never returns.
 
 
== Syntax ==
 
exit(''code'');
 
 
== Parameters ==
 
{| class="wikitable"
|-
| ''code'' || Exit code (optional, 0 will be used by default).
|}
 
 
== Return Value ==
 
None.
 
 
== Examples ==
 
<syntaxhighlight lang="c">
exit();    // exit with code 0
exit(42);  // exit with code 42
</syntaxhighlight>

Navigation menu