GC add 'string' to dumpNumberOfInstances
This commit is contained in:
parent
c99f952dfb
commit
e5af08cc12
1 changed files with 5 additions and 0 deletions
|
|
@ -38,6 +38,11 @@ when defined(nimTypeNames):
|
|||
if h == 1: break
|
||||
|
||||
proc dumpNumberOfInstances* =
|
||||
# also add the allocated strings to the list of known types:
|
||||
if strDesc.nextType == nil:
|
||||
strDesc.nextType = nimTypeRoot
|
||||
strDesc.name = "string"
|
||||
nimTypeRoot = addr strDesc
|
||||
var a: InstancesInfo
|
||||
var n = 0
|
||||
var it = nimTypeRoot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue