even more sys assertions

This commit is contained in:
Araq 2012-01-13 12:49:06 +01:00
commit 76886432da
6 changed files with 68 additions and 33 deletions

View file

@ -832,10 +832,10 @@ proc quit*(errorcode: int = QuitSuccess) {.
## unless a quit procedure calls ``GC_collect``.
template sysAssert(cond, msg: expr) =
# change this to activate system asserts
#if not cond:
# echo "[SYSASSERT] ", msg
# quit 1
when defined(useSysAssert):
if not cond:
echo "[SYSASSERT] ", msg
quit 1
nil
include "system/inclrtl"