No. The only thing you can do is have is to have:<br><br>    SIMPLE_SERVER_DEBUG_2("mesg-1", "mesg-2")<br>
and<br>
     SIMPLE_SERVER_DEUBG_4("mesg-1", "mesg-2", mesg-3, mesg-4)<br>
<br>Which is generally not a problem for you.<br><br>An alternative would be to use LFE which has proper lisp and scheme macros. If you like writing in lisp. :-)<br><br>Robert<br><br><div class="gmail_quote">2009/1/14 Anupam Kapoor <span dir="ltr"><<a href="mailto:anupam.kapoor@gmail.com">anupam.kapoor@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hi all,<br>
<br>
is there a way to define a variable argument macro in erlang ?<br>
something like '...' (elipsis) stuff in C ? i tried to look for the<br>
information, but could not really find anything pertinent.<br>
<br>
for example, i would like to be able to say:<br>
       SIMPLE_SERVER_DEBUG("mesg-1", "mesg-2") in one place,<br>
and in some other place<br>
       SIMPLE_SERVER_DEUBG("mesg-1", "mesg-2", mesg-3, mesg-4)<br>
etc etc<br>
<br>
i have just started dabbling in the language, so please be gentle :o)<br>
<br>
kind regards<br>
anupam<br>
<font color="#888888">--<br>
In the beginning was the lambda, and the lambda was with Emacs, and<br>
Emacs was the lambda.<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</font></blockquote></div><br>