diff options
Diffstat (limited to 'tests/misc/thallo.nim')
-rw-r--r-- | tests/misc/thallo.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/misc/thallo.nim b/tests/misc/thallo.nim index 7172a6b46..8dac56023 100644 --- a/tests/misc/thallo.nim +++ b/tests/misc/thallo.nim @@ -28,7 +28,7 @@ macro macrotest(n: varargs[untyped]): untyped = result.add(newCall("write", n[1], n[i])) result.add(newCall("writeLine", n[1], newStrLitNode(""))) -macro debug(n: untyped): untyped {.immediate.} = +macro debug(n: untyped): untyped = let n = callsite() result = newNimNode(nnkStmtList, n) for i in 1..n.len-1: @@ -48,7 +48,6 @@ echo(["a", "b", "c", "d"].len) for x in items(["What's", "your", "name", "?", ]): echo(x) var `name` = readLine(stdin) -{.breakpoint.} echo("Hi " & thallo.name & "!\n") debug(name) |