#define debug(...)

can someone explain this

#define debug(...)

i guess it allows you to write

debug("foo","bar");
debug(1,2);
debug(&fo,&baz,&bar);
....

but is it portable?
I would appreciate a pointer to any relevant documentation
Thanks
They're called variadic macros. They're not standard C++ but are standard C. I think they'll be added for C++0x. GCC and VC++ starting with 2005 support them.

http://en.wikipedia.org/wiki/Variadic_macro
Topic archived. No new replies allowed.