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

@ -3269,7 +3269,7 @@ when not defined(nimscript) and hasAlloc:
## Expands operating GC stack range to `theStackBottom`. Does nothing
## if current stack bottom is already lower than `theStackBottom`.
else:
elif defined(JS):
template GC_disable* =
{.warning: "GC_disable is a no-op in JavaScript".}