thank you Michał, but __ENV__ holds no information about imported modules.
I will be calling the macros/funtions with no module, so somehow I need to 
figure out which Module
I'm going to be calling the macro/function from 

On Mon, 5 Sep 2016 11:07:43 +0200
Michał Muskała <mic...@muskala.eu> wrote:

> > On 04 Sep 2016, at 18:26, eksperimental <eksperimen...@autistici.org> wrote:
> > 
> > I'm writing a macro and I need to determine at compile time if this macro 
> > is available
> > Let's say some modules have been imported, or aliased.
> > I will be calling this macro with no Module, just the macro itself: "foo/1".
> > I need to determine (at compile time) if "foo/1" is available, and if so, 
> > what is the module
> > it belongs too.  
> 
> You can get a list of all imported functions/macros looking in the 
> __ENV__.functions and
> __ENV__.macros
> 
> Michał.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-talk/20160908063406.42c79702.eksperimental%40autistici.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to