> On 04 Sep 2016, at 18:26, eksperimental <[email protected]> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-talk/20398A99-4FF5-4D10-A471-8DB38EBD38B5%40muskala.eu.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to