* quit value gets saturated to ranges * add documentation * minimal changes * refactor * small fix * add documentation * fixes * Update lib/system.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
This commit is contained in:
parent
51bef9b4a8
commit
d5cc2085ea
16 changed files with 95 additions and 64 deletions
|
|
@ -161,7 +161,7 @@ template gcAssert(cond: bool, msg: string) =
|
|||
writeStackTrace()
|
||||
#var x: ptr int
|
||||
#echo x[]
|
||||
quit 1
|
||||
rawQuit 1
|
||||
|
||||
proc addZCT(s: var CellSeq, c: PCell) {.noinline.} =
|
||||
if (c.refcount and ZctFlag) == 0:
|
||||
|
|
@ -626,7 +626,7 @@ when logGC:
|
|||
if cycleCheckA[i] == c: return true
|
||||
if cycleCheckALen == len(cycleCheckA):
|
||||
gcAssert(false, "cycle detection overflow")
|
||||
quit 1
|
||||
rawQuit 1
|
||||
cycleCheckA[cycleCheckALen] = c
|
||||
inc cycleCheckALen
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue