--gc:destructors now means Nim uses pure refcounting (#12557)
This commit is contained in:
parent
b5bb581642
commit
1746da2d9e
12 changed files with 123 additions and 35 deletions
|
|
@ -87,7 +87,7 @@ type
|
|||
ntfEnumHole = 2 # enum has holes and thus `$` for them needs the slow
|
||||
# version
|
||||
TNimType {.compilerproc.} = object
|
||||
when defined(gcDestructors):
|
||||
when defined(gcHooks):
|
||||
head*: pointer
|
||||
size*: int
|
||||
kind: TNimKind
|
||||
|
|
@ -103,7 +103,7 @@ type
|
|||
instances: int # count the number of instances
|
||||
sizes: int # sizes of all instances in bytes
|
||||
|
||||
when defined(gcDestructors):
|
||||
when defined(gcHooks):
|
||||
type
|
||||
PNimType* = ptr TNimType
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue