Call a macro within a macro

Hi @yuyichao , @kristoffer.carlsson

I just encounter a similar problem.

To make it simple:

I have a inner macro:

macro m1(ex)  :(println($ex + 1)) end

and an outer macro:

macro m2(ex)  :(@m1 $(esc(ex))) end

But

julia> for i in 1:3
       @m2 i
       end
ERROR: UndefVarError: i not defined
Stacktrace:
 [1] macro expansion at ./REPL[10]:2 [inlined]
 [2] top-level scope at ./<missing>:0

How can the inner macro access i?

Thanks.