diff options
author | Araq <rumpf_a@web.de> | 2019-11-12 17:05:32 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-11-13 23:29:21 +0100 |
commit | 25c724d38b66aa52b017a63ad6ea59912d627f5a (patch) | |
tree | b12dafdf01ffa676b4d962c42827c9ecb5895c8a /lib/system/excpt.nim | |
parent | eea0cb07cfcebcb5be9e1a942834c7ed675579b9 (diff) | |
download | Nim-25c724d38b66aa52b017a63ad6ea59912d627f5a.tar.gz |
gc:arc: support GC_ref/unref for ref T
Diffstat (limited to 'lib/system/excpt.nim')
-rw-r--r-- | lib/system/excpt.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index 4074002fe..2595a045b 100644 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -531,12 +531,12 @@ when not defined(noSignalHandler) and not defined(useNimRtl): when defined(memtracker): logPendingOps() when hasSomeStackTrace: - GC_disable() + when not defined(gcDestructors): GC_disable() var buf = newStringOfCap(2000) rawWriteStackTrace(buf) processSignal(sign, buf.add) # nice hu? currying a la Nim :-) showErrorMessage(buf) - GC_enable() + when not defined(gcDestructors): GC_enable() else: var msg: cstring template asgn(y) = |