f45967537 ^
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import macros proc testProc: string {.compileTime.} = result = "" result = result & "" when true: macro test(n: stmt): stmt = result = newNimNode(nnkStmtList) echo "#", testProc(), "#" test: "hi" const x = testProc() echo "##", x, "##"