undeprecate system.programResult until we have a good solution at hand

This commit is contained in:
Araq
2019-06-03 09:35:04 +02:00
parent a68fe3d082
commit 64518380a5
2 changed files with 3 additions and 3 deletions

View File

@@ -551,7 +551,7 @@ template fail* =
else:
formatter.failureOccurred(checkpoints, "")
when not defined(ECMAScript):
when declared(programResult):
if abortOnError: quit(programResult)
checkpoints = @[]

View File

@@ -1945,10 +1945,10 @@ const
## failure.
when defined(nodejs) and not defined(nimscript):
var programResult* {.importc: "process.exitCode", deprecated.}: int
var programResult* {.importc: "process.exitCode".}: int
programResult = 0
elif hostOS != "standalone":
var programResult* {.compilerproc, exportc: "nim_program_result", deprecated.}: int
var programResult* {.compilerproc, exportc: "nim_program_result".}: int
## deprecated, prefer ``quit``
when defined(nimdoc):