cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
#define debug(...)
#define debug(...)
Jul 1, 2009 at 2:57am UTC
debugdotdotdot
(1)
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
Jul 1, 2009 at 3:07am UTC
helios
(17574)
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.