new name mangling rules for easier debugging
This commit is contained in:
parent
a86966eefd
commit
fab69661ad
9 changed files with 90 additions and 59 deletions
|
|
@ -19,9 +19,9 @@ proc accessThreadLocalVar(p: BProc, s: PSym) =
|
|||
if emulatedThreadVars() and not p.threadVarAccessed:
|
||||
p.threadVarAccessed = true
|
||||
incl p.module.flags, usesThreadVars
|
||||
addf(p.procSec(cpsLocals), "\tNimThreadVars* NimTV;$n", [])
|
||||
addf(p.procSec(cpsLocals), "\tNimThreadVars* NimTV_;$n", [])
|
||||
add(p.procSec(cpsInit),
|
||||
ropecg(p.module, "\tNimTV = (NimThreadVars*) #GetThreadLocalVars();$n"))
|
||||
ropecg(p.module, "\tNimTV_ = (NimThreadVars*) #GetThreadLocalVars();$n"))
|
||||
|
||||
var
|
||||
nimtv: Rope # Nim thread vars; the struct body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue