Hi,
I'm writing a macro, for simplicity let's assume that this one:
macro print(s: stmt): stmt =
echo treeRepr s
result = s
I can use this two ways:
print:
echo 5
and
proc anything() {.print.} =
echo 5
Can I use this macro for a larger codebase easily (without indenting or add it to every function)? For example can I use a pragma like {.print.} or {.push print.}?
Thanks, Peter