hashtables: 1st version; parseutils additions

This commit is contained in:
Araq 2011-04-18 23:41:31 +02:00
commit d1b766cec0
5 changed files with 175 additions and 6 deletions

View file

@ -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