[erlang-questions] variable argument preprocessor macros

Anupam Kapoor anupam.kapoor@REDACTED
Wed Jan 14 03:23:12 CET 2009


hi all,

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)
etc etc

i have just started dabbling in the language, so please be gentle :o)

kind regards
anupam
-- 
In the beginning was the lambda, and the lambda was with Emacs, and
Emacs was the lambda.



More information about the erlang-questions mailing list