macro getvar(x)
println(x)
return nothing
end
x = 1
@getvar x
getvar sees x as a symbol and prints out “x” as expected.
Now, let’s assume I need the x value for some further logic within the macro (not within the expression returned by the macro, but before I build the expression)? How do I get it?