[erlang-questions] -define

Robert Virding <>
Thu Feb 18 20:37:14 CET 2010


On 18 February 2010 12:01, Ulf Wiger <> wrote:
>
> Well, if you look at the source in epp.erl, it doesn't seem to
> be that difficult to change:
>
> macro_expansion([{')',_Lp},{dot,_Ld}]) -> [];
> macro_expansion([{dot,_Ld}]) -> []; %Be nice, allow no right paren!
> macro_expansion([T|Ts]) ->    [T|macro_expansion(Ts)].
>
> It ought to be enough to delete the line with the "Be nice" comment,
> or perhaps modify it to signal an error instead.

There is more to it than that because if it had been that easy even I
would have done it. My guess is that it had something to do with the
error handling if there was an error. Now there will never be an error
there.

Robert


More information about the erlang-questions mailing list