Access docstring within a macro

Hello

Is there any way to access the docstring accompanying a macro at call place? It would be something like this:

macro MyMacro(arg)
# Do something with my docs
# It does not mean that I want to append the outer doc to some inner object using Main.@__doc__
end

"I want to access this docstring"
@MyMacro argument

I have seen this topic, which is closely related, but no response was given: https://discourse.julialang.org/t/accessing-the-docstring-from-within-a-macro-doc-troubles

Thanks!

1 Like