Commas in macro arguments

Claus Tondering ct at dde.dk
Fri Mar 23 06:30:48 AEST 1990


Suppose I have the following macro definition:

#define call(a,b)	a(b)

I can use that to call a function with one argument. How can I use
it to call a function with two arguments? In other words: How do I
pass a string containing a comma as the second argument to the macro?
Can it be done, or is it impossible?
-- 
Claus Tondering
Dansk Data Elektronik A/S, Herlev, Denmark
E-mail: ct at dde.dk    or    ...!uunet!mcvax!dkuug!dde!ct



More information about the Comp.std.c mailing list