在Haxe有某种退出声明吗?

qua*_*ant 4 haxe

在haxe中有某种退出声明吗?喜欢

import sys
sys.exit(0)
Run Code Online (Sandbox Code Playgroud)

在Python或

System.exit(0);
Run Code Online (Sandbox Code Playgroud)

在Java?

PS:只需要这个sys目标......

kLa*_*abz 7

您可以Sys.exit(code)在sys目标中使用(cpp,cs,hl,java,lua,macro,neko,php,python).

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

对于Flash目标:https:flash.system.System.exit(code) //api.haxe.org/flash/system/System.html#exit