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
|
|
@ -39,12 +39,12 @@ type
|
|||
f: cstring
|
||||
num, i, lineLen: int
|
||||
|
||||
template call(x: stmt) =
|
||||
template call(x: stmt) {.immediate.} =
|
||||
p.i = i
|
||||
x
|
||||
i = p.i
|
||||
|
||||
template callNoLineLenTracking(x: stmt) =
|
||||
template callNoLineLenTracking(x: stmt) {.immediate.} =
|
||||
let oldLineLen = p.lineLen
|
||||
p.i = i
|
||||
x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue