From d5cc2085eae85ad922dfafc1dca81860d94d1731 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Sat, 5 Nov 2022 17:58:57 +0800 Subject: ref #20694; quit value gets saturated to ranges (#20753) * 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 Co-authored-by: Juan Carlos --- lib/system/orc.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/system/orc.nim') diff --git a/lib/system/orc.nim b/lib/system/orc.nim index 32c6b9adc..83b983ee1 100644 --- a/lib/system/orc.nim +++ b/lib/system/orc.nim @@ -114,7 +114,7 @@ template orcAssert(cond, msg) = when logOrc: if not cond: cfprintf(cstderr, "[Bug!] %s\n", msg) - quit 1 + rawQuit 1 when logOrc: proc strstr(s, sub: cstring): cstring {.header: "", importc.} @@ -143,7 +143,7 @@ proc unregisterCycle(s: Cell) = when false: if idx >= roots.len or idx < 0: cprintf("[Bug!] %ld\n", idx) - quit 1 + rawQuit 1 roots.d[idx] = roots.d[roots.len-1] roots.d[idx][0].rootIdx = idx+1 dec roots.len -- cgit 1.4.1-2-gfad0