undeprecate system.programResult until we have a good solution at hand
This commit is contained in:
parent
a68fe3d082
commit
64518380a5
2 changed files with 3 additions and 3 deletions
|
|
@ -551,7 +551,7 @@ template fail* =
|
|||
else:
|
||||
formatter.failureOccurred(checkpoints, "")
|
||||
|
||||
when not defined(ECMAScript):
|
||||
when declared(programResult):
|
||||
if abortOnError: quit(programResult)
|
||||
|
||||
checkpoints = @[]
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue