move {.injectStmt.} to experimental; add a test (#18300)
* move {.injectStmt.} to experimental; add a test
* undocument and deprecat `.injectStmt` but keep its implementation until we have a replacement
This commit is contained in:
parent
590d457631
commit
6030e139b5
6 changed files with 53 additions and 15 deletions
|
|
@ -429,6 +429,7 @@ proc sweep(gch: var GcHeap) =
|
|||
else: freeCyclicCell(gch, c)
|
||||
|
||||
when false:
|
||||
# meant to be used with the now-deprected `.injectStmt`: {.injectStmt: newGcInvariant().}
|
||||
proc newGcInvariant*() =
|
||||
for x in allObjects(gch.region):
|
||||
if isCell(x):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue