[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#337340: sentinel attribute should support non-NULL sentinels



Josh Triplett <josh@psas.pdx.edu> writes:

> The sentinel attribute tells GCC to ensure that the argument list of a
> variadic function always ends with a final NULL argument.  It should be
> possible to use this attribute for a variadic function where the
> sentinel is some constant other than NULL, as long as the value of the
> constant can be determined at compile time and supplied as a parameter
> to the sentinel attribute.

Does this really occur frequently enough to be worth the trouble? Can
you name a few libraries that do this?

-- 
	Falk



Reply to: