--gc:destructors: hello world example compiles and runs
This commit is contained in:
parent
2eb14bdd41
commit
4bd9f32f33
4 changed files with 13 additions and 3 deletions
|
|
@ -69,7 +69,7 @@ proc genStringLiteralV2(m: BModule; n: PNode): Rope =
|
|||
addf(m.s[cfsData], "static const NimStringV2 $1 = {$2, (NimStrPayload*)&$3};$n",
|
||||
[result, rope(len(n.strVal)), pureLit])
|
||||
else:
|
||||
result = m.tmpBase & rope(id)
|
||||
result = m.tmpBase & rope(id+1)
|
||||
|
||||
proc genStringLiteralV2Const(m: BModule; n: PNode): Rope =
|
||||
let id = nodeTableTestOrSet(m.dataCache, n, m.labels)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue