If you write the module yourself, the simplest way would be:
macro myMacro(body: typed): typed =
# do things here
#
# do not forget to add the original procs to the output!
myMacro:
proc proc1*() = discard
proc proc2*() = discard
# ...
- Macro: enumerate exported functions from a module jlp765
- Re: Macro: enumerate exported functions from a module flyx
