Question about #pragma removal
Neil Booth
neil@daikokuya.demon.co.uk
Thu Mar 14 11:38:00 GMT 2002
Paul Koning wrote:-
> I think one of the two reasons given is perfectly valid: "It is
> impossible to generate #pragma commands from a macro". Yes, the other
> objections apply to __attribute__ just as much as to #pragma. But the
> one about macros is a clear differentiator.
Not any more. C99 introduced _Pragma, which effectively allows you to
put a pragma in a macro. GCC has implemented this since 3.0.
Neil.
More information about the Gcc
mailing list