fixes #603
This commit is contained in:
parent
4d10937a30
commit
dfe01bbe69
1 changed files with 2 additions and 2 deletions
|
|
@ -21,8 +21,8 @@ proc registerGcRoot(p: BProc, v: PSym) =
|
||||||
# we register a specialized marked proc here; this has the advantage
|
# we register a specialized marked proc here; this has the advantage
|
||||||
# that it works out of the box for thread local storage then :-)
|
# that it works out of the box for thread local storage then :-)
|
||||||
let prc = genTraverseProcForGlobal(p.module, v)
|
let prc = genTraverseProcForGlobal(p.module, v)
|
||||||
linefmt(p.module.initProc, cpsStmts,
|
appcg(p.module, p.module.initProc.procSec(cpsStmts),
|
||||||
"#nimRegisterGlobalMarker($1);$n", prc)
|
"#nimRegisterGlobalMarker($1);$n", [prc])
|
||||||
|
|
||||||
proc isAssignedImmediately(n: PNode): bool {.inline.} =
|
proc isAssignedImmediately(n: PNode): bool {.inline.} =
|
||||||
if n.kind == nkEmpty: return false
|
if n.kind == nkEmpty: return false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue