Hi,<br><br>I have a question about macro definitions in Erlang.<br><br>When I write the following in my .hrl file:<br><br><code><br>[line 10] -define(LOG(X), io:format("~w~n",[X])).<br>[line 11] -define(LOG(X,D), io:format("~w~n",[X,D])).
<br></code><br><br>I get the following compile error:<br><br>./../include/file.hrl:11: redefining macro ''LOG''<br><br>Can someone explain to me what "redefining" means here? Does that mean if I cannot define a macro with the same name even though they have different arity?
<br><br>Best regards,<br><br>Ahmed Al-Issaei<br>