Merge pull request #4611 from jangko/vs2010_error_c2275

fixed #4459 -- VS2010 error C2275
This commit is contained in:
Andreas Rumpf 2016-08-25 16:37:17 +02:00 • committed by GitHub
commit d4dc091143

View file

@ -21,7 +21,7 @@ proc registerGcRoot(p: BProc, v: PSym) =
# we register a specialized marked proc here; this has the advantage
# that it works out of the box for thread local storage then :-)
let prc = genTraverseProcForGlobal(p.module, v)
appcg(p.module, p.module.initProc.procSec(cpsStmts),
appcg(p.module, p.module.initProc.procSec(cpsInit),
"#nimRegisterGlobalMarker($1);$n", [prc])
proc isAssignedImmediately(n: PNode): bool {.inline.} =