[erlang-questions] getting application name in parse transform

John Doe donpedrothird@REDACTED
Thu Dec 22 15:22:06 CET 2016


Hi,
Is there a way to get in a parse transform the name of the application the
module belongs to? The parse_transform function has parameter Options so it
is possible to add an argument to erlc with app name, but is it possible to
get the name of the app automatically?

I tried
{attribute, _, module, ModuleName} = lists:keyfind(module, 3, Forms),
application:get_application(ModuleName),
but it returns undefined
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20161222/dea69016/attachment.htm>


More information about the erlang-questions mailing list