I think the canonical solution to this is to use a QuoteNode or Meta.quot:
macro mymacro(ast)
println("ast outside = ", ast, "---\n")
:(function generated()
println("ast inside = ", $(QuoteNode(ast)), "---\n")
end
)
end
I think the canonical solution to this is to use a QuoteNode or Meta.quot:
macro mymacro(ast)
println("ast outside = ", ast, "---\n")
:(function generated()
println("ast inside = ", $(QuoteNode(ast)), "---\n")
end
)
end