is the ifdef macro supposed to work in the middle of a function?

Matthias Lang matthias@REDACTED
Fri Jul 5 11:03:11 CEST 2002


Hi,

Feature or bug?

----------------------------------------------------------------------
-module(macro).

%% The following works
-ifdef(BLO).
b(1) -> ok.
-endif.


%% But this does not work: macro.erl:14: unterminated '-ifdef'
-ifdef(BLA).
a(1) -> ok;
-endif.
a(2) -> ok.
----------------------------------------------------------------------

Using R8B-1.

Matthias



More information about the erlang-questions mailing list