[Bug c/33877] New: Request for __VA_ARGC__
michael at fig dot org
gcc-bugzilla@gcc.gnu.org
Wed Oct 24 07:58:00 GMT 2007
It would be really convenient if the C preprocessor exposed the number of
variable arguments supplied to a variadic macro as an integer. I tried to come
up with ways of working around this missing feature, but I can't figure out how
to do it without evaluating the macro arguments twice or causing compiler
warnings.
I can supply a patch, if I am blessed with my proposed solution, to have
__VA_ARGC__ be an integer count of the number of __VA_ARGS__. If you have
suggestions for a better design, I'd like to hear them!
Thanks,
Michael.
--
Summary: Request for __VA_ARGC__
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: michael at fig dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33877
More information about the Gcc-bugs
mailing list