This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: deprecated GNU ## extension used


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]