Fix node quit (#6444)

This commit is contained in:
Alexander Ivanov
2017-09-28 09:51:51 +03:00
committed by Andreas Rumpf
parent 7abad507c9
commit 455452e107

View File

@@ -1443,6 +1443,10 @@ elif defined(genode):
importcpp: "genodeEnv->parent().exit(@); Genode::sleep_forever()",
header: "<base/sleep.h>".}
elif defined(nodejs):
proc quit*(errorcode: int = QuitSuccess) {.magic: "Exit",
importc: "process.exit", noreturn.}
else:
proc quit*(errorcode: int = QuitSuccess) {.
magic: "Exit", importc: "exit", header: "<stdlib.h>", noreturn.}