better tester
This commit is contained in:
parent
12247b3f56
commit
383fbca27e
21 changed files with 39 additions and 31 deletions
8
tests/macros/tmacroaspragma.nim
Normal file
8
tests/macros/tmacroaspragma.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import macros
|
||||
|
||||
macro foo(x: stmt): stmt =
|
||||
echo treerepr(callsite())
|
||||
result = newNimNode(nnkStmtList)
|
||||
|
||||
proc zoo() {.foo.} = echo "hi"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue