hashtables: 1st version; parseutils additions
This commit is contained in:
parent
48dd9679bd
commit
d1b766cec0
5 changed files with 175 additions and 6 deletions
|
|
@ -1717,10 +1717,10 @@ elif defined(ecmaScript) or defined(NimrodVM):
|
|||
if x < y: return -1
|
||||
return 1
|
||||
|
||||
proc quit*(errormsg: string) {.noReturn.} =
|
||||
## a shorthand for ``echo(errormsg); quit(quitFailure)``.
|
||||
proc quit*(errormsg: string, errorcode = QuitFailure) {.noReturn.} =
|
||||
## a shorthand for ``echo(errormsg); quit(errorcode)``.
|
||||
echo(errormsg)
|
||||
quit(quitFailure)
|
||||
quit(errorcode)
|
||||
|
||||
{.pop.} # checks
|
||||
{.pop.} # hints
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue