I'm not sure i understand what u r trying to do exactly. but are u trying to do<div>-define(FILE, "somepath").</div><div>in some.hrl?</div><div>cause ?FILE is a predefined macro that is expanded to the name of the current module, you can't redefine it.<br>
<br><div class="gmail_quote">On Tue, May 10, 2011 at 11:36 PM, Wes James <span dir="ltr"><<a href="mailto:comptekki@gmail.com">comptekki@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I was trying to do something like this:<br>
<br>
-include("some.hrl").<br>
-include(?FILE).<br>
<br>
Where FILE is defined in some.hrl, but found that can't be done. I<br>
was trying to define a path to a hrl file without having it show in<br>
the actual file on github. I guess the way to do this is with an<br>
environment variable, if I'm worried about it.<br>
<br>
I found info on macros in "The Preprocessor" page on <a href="http://erlang.org" target="_blank">erlang.org</a><br>
<br>
<a href="http://www.erlang.org/doc/reference_manual/macros.html" target="_blank">http://www.erlang.org/doc/reference_manual/macros.html</a><br>
<br>
-wes<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br>- Ahmed Omar<div><a href="http://nl.linkedin.com/in/adiaa" target="_blank">http://nl.linkedin.com/in/adiaa</a></div><div>Follow me on twitter</div><div><a href="http://twitter.com/#!/spawn_think" target="_blank">@spawn_think</a></div>
<br>
</div>