first steps for overloading support of passing blocks; bugfix: test results of 'compile' are not overwritten
This commit is contained in:
parent
1bb1db79b2
commit
64c638a9dc
12 changed files with 70 additions and 39 deletions
|
|
@ -87,7 +87,7 @@ proc genSimpleBlock(p: BProc, stmts: PNode) {.inline.} =
|
|||
genStmts(p, stmts)
|
||||
endBlock(p)
|
||||
|
||||
template preserveBreakIdx(body: stmt): stmt =
|
||||
template preserveBreakIdx(body: stmt): stmt {.immediate.} =
|
||||
var oldBreakIdx = p.breakIdx
|
||||
body
|
||||
p.breakIdx = oldBreakIdx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue