Macroexpand in a module

I saw the recent changes to macroexpand in 0.7, where you can specify a module to resolve macro names in. Is there any way to mimic this ability in 0.6 and earlier?

Nevermind, found the answer in a historical version of macrotools:

if VERSION < v"0.7-"
    my_macroexpand(m::Module, ex) = eval(m, :(macroexpand($(Expr(:quote, ex)))))
else
    my_macroexpand = macroexpand
end