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
Macros with undefined number of paramete
Macros with undefined number of parameters
Dec 19, 2008 at 5:59pm UTC
cppuser7
(5)
Hi, it's possible to write macros that accept an undefined number of parameters?
Last edited on
Dec 19, 2008 at 6:00pm UTC
Dec 20, 2008 at 12:12am UTC
helios
(17574)
http://en.wikipedia.org/wiki/Variadic_macro
In short, you can pass the whole list to another function/macro, but there's no way to access the individual parameters.
Last edited on
Dec 20, 2008 at 12:12am UTC
Dec 22, 2008 at 10:07pm UTC
cppuser7
(5)
PERFECT!! Thanks
Topic archived. No new replies allowed.