This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about #pragma removal


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.


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