Public Comment Number PC-UK0052 ISO/IEC CD 9899 (SC22N2620) Public Comment =========================================== Date: 1998-01-16 Author: Clive D.W. Feather Author Affiliation: Self Postal Address: Demon Internet Limited 322 Regents Park Road London N3 2QQ United Kingdom E-mail Address: Telephone Number: +44 181 371 1138 Fax Number: +44 181 371 1037 Number of individual comments: 1 Comment 1. Category: Feature that should be included Committee Draft subsection: 6.8.3 Title: Add a __VA_COUNT__ facility for varargs macros Detailed description: Unlike with function calls, it is trivial for an implementation to determine the number of arguments that match the ... in a varargs macro. There are a number of useful things that can be done with this (at the least, providing argument counts to varargs functions). Therefore this information should be made available to the macro expansion. In 6.8.3p5, change The identifier /__VA_ARGS__/ ... to: The identifiers /__VA_ARGS__/ and /__VA_COUNT__/ ... Append to 6.8.3.1p2: The identifier /__VA_COUNT__/ that occurs in the replacement list shall be treated as if it were a parameter; it is replaced by a single token which is the number of trailing arguments (as a decimal constant) that were merged to form the variable arguments.