On Thu, 15 Jan 2026, Kamila Szewczyk wrote:

> This patch, shall you accept it, partially implements the proposal
> wg14-n3792, available here:
> 
> https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3792.pdf
> 
> Based on the implementation of __VA_OPT__, I have added the
> preprocessor built-in __VA_COUNT__ that expands to the number of
> variadic macro arugments after full macro replacement.
> 
> The patch has been tested on x86_64-pc-linux-gnu; I included a
> simple unit test that exercises most of the desired behaviours.
> 
> Since the proposal has not been accepted or widely discussed yet,
> I would suggest we discuss this in more detail before merging.

Have you sent it to WG21?  It clearly needs to go there and be considered 
by the liaison group, on the principle of keeping the preprocessor 
specification in sync between C and C++.

I very much doubt this can reach the agenda for a WG14 meeting before Q3, 
given that we already have enough unscheduled papers to fill the agenda of 
the March meeting and half the agenda of the Q3 in-person meeting as well.  
Inclusion in GCC before it's been discussed at a meeting at all seems 
premature.

-- 
Joseph S. Myers
[email protected]

Reply via email to