addQuitProc => addExitProc (#16765)
This commit is contained in:
parent
8f1f0bd1da
commit
18b983d7e3
7 changed files with 21 additions and 12 deletions
|
|
@ -7,6 +7,10 @@ contents thereof.
|
|||
|
||||
As said in the Olde Country, `Keepe it Gangster'."""
|
||||
|
||||
#[
|
||||
xxx remove this? seems mostly duplicate of: tests/manyloc/nake/nake.nim
|
||||
]#
|
||||
|
||||
import strutils, parseopt, tables, os
|
||||
|
||||
type
|
||||
|
|
@ -60,7 +64,8 @@ when true:
|
|||
args.add " "
|
||||
quit(shell("nim", "c", "-r", "nakefile.nim", args))
|
||||
else:
|
||||
addQuitProc(proc() {.noconv.} =
|
||||
import std/exitprocs
|
||||
addExitProc(proc() {.noconv.} =
|
||||
var
|
||||
task: string
|
||||
printTaskList: bool
|
||||
|
|
|
|||
|
|
@ -60,7 +60,8 @@ when true:
|
|||
args.add " "
|
||||
quit(shell("nim", "c", "-r", "nakefile.nim", args))
|
||||
else:
|
||||
addQuitProc(proc() {.noconv.} =
|
||||
import std/exitprocs
|
||||
addExitProc(proc() {.noconv.} =
|
||||
var
|
||||
task: string
|
||||
printTaskList: bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue