Fix node quit (#6444)
This commit is contained in:
parent
7abad507c9
commit
455452e107
1 changed files with 4 additions and 0 deletions
|
|
@ -1443,6 +1443,10 @@ elif defined(genode):
|
||||||
importcpp: "genodeEnv->parent().exit(@); Genode::sleep_forever()",
|
importcpp: "genodeEnv->parent().exit(@); Genode::sleep_forever()",
|
||||||
header: "<base/sleep.h>".}
|
header: "<base/sleep.h>".}
|
||||||
|
|
||||||
|
elif defined(nodejs):
|
||||||
|
proc quit*(errorcode: int = QuitSuccess) {.magic: "Exit",
|
||||||
|
importc: "process.exit", noreturn.}
|
||||||
|
|
||||||
else:
|
else:
|
||||||
proc quit*(errorcode: int = QuitSuccess) {.
|
proc quit*(errorcode: int = QuitSuccess) {.
|
||||||
magic: "Exit", importc: "exit", header: "<stdlib.h>", noreturn.}
|
magic: "Exit", importc: "exit", header: "<stdlib.h>", noreturn.}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue