[erlang-questions] variable argument preprocessor macros
Wed Jan 14 03:23:12 CET 2009
is there a way to define a variable argument macro in erlang ?
something like '...' (elipsis) stuff in C ? i tried to look for the
information, but could not really find anything pertinent.
for example, i would like to be able to say:
SIMPLE_SERVER_DEBUG("mesg-1", "mesg-2") in one place,
and in some other place
SIMPLE_SERVER_DEUBG("mesg-1", "mesg-2", mesg-3, mesg-4)
i have just started dabbling in the language, so please be gentle :o)
In the beginning was the lambda, and the lambda was with Emacs, and
Emacs was the lambda.
More information about the erlang-questions