summary refs log tree commit diff stats
path: root/lib/system/orc.nim
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-11-05 17:58:57 +0800
committerGitHub <noreply@github.com>2022-11-05 10:58:57 +0100
commitd5cc2085eae85ad922dfafc1dca81860d94d1731 (patch)
tree6afd62439774d55171cf4c5cf2faf18c602d9fb1 /lib/system/orc.nim
parent51bef9b4a8b0dab065470d9c224c20ac21e72275 (diff)
downloadNim-d5cc2085eae85ad922dfafc1dca81860d94d1731.tar.gz
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 <juancarlospaco@gmail.com>

Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
Diffstat (limited to 'lib/system/orc.nim')
-rw-r--r--lib/system/orc.nim4
1 files changed, 2 insertions, 2 deletions
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: "<string.h>", 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