You can use `current_module()`.

On Sat, Oct 17, 2015 at 8:22 AM, Cedric St-Jean <[email protected]>
wrote:

> I'm writing a macro to provide global permanence across reloads, and I
> need the calling module's name. Can that be accessed somehow? Eg.
>
> macro foo()
>     @show "This macro is expanded in module $(mod)"  # what should $(mod)
> be?
> end
>
> module blah
> @foo()
> end
>
>
>

Reply via email to