gc:arc: support GC_ref/unref for ref T

This commit is contained in:
Araq 2019-11-12 17:05:32 +01:00 • committed by Andreas Rumpf
commit 25c724d38b
3 changed files with 16 additions and 5 deletions

View file

@ -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) =