On 05/14/2012 05:37 PM, Robert Wessel wrote:
> That being said, I think something like the "_pragma trigraphs(on)"
> option mooted above would be a perfectly reasonable compromise.
You've got the syntax wrong. _Pragma("string literal") is equivalent to
#pragma string literal
C99 was the first version of the standard to introduce standard-defined
pragmas, and it also established naming conventions which should be
adhered to by any additional pragmas that are proposed. Every standard
pragma has a name which is all capitals, and contains at least two
words, the first of which is "STDC". Those which turn a feature either
on or off do so by simply appending "ON" or "OFF" to the pragma's name.
Therefore, that should be _Pragma("STDC TRIGRAPHS ON")