Conditional Macros

theeepan theepan@REDACTED
Fri Aug 11 09:39:37 CEST 2006


Hi There,
 
Isn't the following treatment of conditional macros applicable? I get
'syntax error' on compilation
 
 
-behaviour(supervisor).
 
%% call backs needed for supervisor behaviour
-export([init/1]).
 
 
init(State) ->
            {ok,{{one_for_one, 100, 3600},
                                    [
-ifdef(WITH_SPEC1).
                                                Child_spec1,
-endif.
                                                Child_spec2,
                                                Child_spec3,
                                                .
                                    ]
            }}.
 
Thanks,
Theepan.                                               
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060811/09848d1e/attachment.htm>


More information about the erlang-questions mailing list