gc:destructors further progress
This commit is contained in:
parent
ab38c075f8
commit
7d82df20be
6 changed files with 52 additions and 24 deletions
|
|
@ -54,7 +54,7 @@ proc genStringLiteralV1(m: BModule; n: PNode): Rope =
|
|||
proc genStringLiteralDataOnlyV2(m: BModule, s: string): Rope =
|
||||
result = getTempName(m)
|
||||
addf(m.s[cfsData], "static const struct {$n" &
|
||||
" NI cap; void* allocator; NIM_CHAR data[$2];$n" &
|
||||
" NI cap; void* allocator; NIM_CHAR data[$2+1];$n" &
|
||||
"} $1 = { $2, NIM_NIL, $3 };$n",
|
||||
[result, rope(len(s)), makeCString(s)])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue