diff options
Diffstat (limited to 'lib/system.nim')
-rw-r--r-- | lib/system.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/system.nim b/lib/system.nim index e642eb335..dc3152faf 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -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.} |