You probably said it already, but this idiom served me well:
macro m() =
...
when defined(nimDumpM):
echo repr result
RunOther random notes: * don't turn Nim into C with `converter toBool(x: int): bool` * Don't overload macros/templates that use `untyped` parameters. * Write the macro transformation carefully. Ensure that the `lineinfo` in the nodes remains useful. * Check the error messages that resulted from misuse of your macro.
