Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there some kind of exit statement in Haxe?

Tags:

haxe

Is there some kind of exit statement in haxe? Like

import sys
sys.exit(0)

in Python or

System.exit(0);

in Java?

P.S.: Only need this for sys targets ...

like image 936
quant Avatar asked Mar 06 '23 17:03

quant


1 Answers

You can use Sys.exit(code) in sys targets (cpp, cs, hl, java, lua, macro, neko, php, python).

https://api.haxe.org/Sys.html#exit

And for Flash target: flash.system.System.exit(code) https://api.haxe.org/flash/system/System.html#exit

like image 71
kLabz Avatar answered Mar 09 '23 06:03

kLabz