deprecated GNU ## extension used
Neil Booth
NeilB@earthling.net
Tue Jul 11 15:33:00 GMT 2000
Andreas Jaeger wrote:-
> How do you rewrite this for C99 (I haven't checked if this works and
> whether it is a correct GNU-syntax varargs marcro):
>
> #define vararg_test(args...) \
> somefunction("Test", ## args)
Simply add "Test" with or without a comma as appropriate to your
arguments. I don't think we _need_ an ill-defined extension, it just
makes some things easier, but breaks standards conformance.
Neil.
More information about the Libc-alpha
mailing list