This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/33877] Request for __VA_ARGC__



------- Comment #3 from Dave at Yost dot com  2008-07-23 18:33 -------
This feature enables the declaration (via macro) of a variadic function that
requires neither an argument containing a count of the number of variadic
arguments (which is busywork clutter prone to unchecked error) nor an
out-of-band trailing value (which is clutter at best and an impossibility at
worst).

#define foo(...) realFoo(__VA_ARGC__, __VA_ARGS__)

void realFoo(int argc, ...) {
 ..
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33877


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]