fix threading tests
This commit is contained in:
parent
567b5b07ea
commit
20d56875de
2 changed files with 10 additions and 4 deletions
|
|
@ -116,8 +116,13 @@ var
|
|||
gForwardedProcsCounter*: int = 0
|
||||
gNimDat*: BModule # generated global data
|
||||
|
||||
proc s*(prc: BProc, s: TCProcSection): var PRope {.inline.} =
|
||||
result = prc.blocks[prc.blocks.len - 1].sections[s]
|
||||
proc s*(p: BProc, s: TCProcSection): var PRope {.inline.} =
|
||||
# section in the current block
|
||||
result = p.blocks[p.blocks.len - 1].sections[s]
|
||||
|
||||
proc procSec*(p: BProc, s: TCProcSection): var PRope {.inline.} =
|
||||
# top level proc sections
|
||||
result = p.blocks[0].sections[s]
|
||||
|
||||
proc newProc*(prc: PSym, module: BModule): BProc =
|
||||
new(result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue