[erlang-questions] macro in include definition - can't

Wes James comptekki@REDACTED
Tue May 10 23:36:19 CEST 2011


I was trying to do something like this:

-include("some.hrl").
-include(?FILE).

Where FILE is defined in some.hrl, but found that can't be done.   I
was trying to define a path to a hrl file without having it show in
the actual file on github.  I guess the way to do this is with an
environment variable, if I'm worried about it.

I found info on macros in "The Preprocessor" page on erlang.org

http://www.erlang.org/doc/reference_manual/macros.html

-wes



More information about the erlang-questions mailing list