more progress on destructor based strings
This commit is contained in:
parent
5b59852406
commit
74bf316619
16 changed files with 279 additions and 244 deletions
|
|
@ -554,7 +554,7 @@ else:
|
|||
else:
|
||||
include "system/gc"
|
||||
|
||||
when not declared(nimNewSeqOfCap):
|
||||
when not declared(nimNewSeqOfCap) and not defined(gcDestructors):
|
||||
proc nimNewSeqOfCap(typ: PNimType, cap: int): pointer {.compilerproc.} =
|
||||
when defined(gcRegions):
|
||||
let s = mulInt(cap, typ.base.size) # newStr already adds GenericSeqSize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue