tmacroaspragma.nim 143 B

12345678
  1. import macros
  2. macro foo(x: untyped): untyped =
  3. echo treerepr(callsite())
  4. result = newNimNode(nnkStmtList)
  5. proc zoo() {.foo.} = echo "hi"