Controls the use ANSI/ISO trigraph sequences.
Compatibility:This pragma is compatible with the following platform targets:
#pragma trigraphs on | off | reset
Remarks:
If you're writing code that must follow the ANSI standard strictly, turn on the pragma trigraphs in the C/C++ Language Panel. Many common Macintosh character constants look like trigraph sequences, and this pragma lets you use them without including escape characters. Be careful when you initialize strings or multi-character constants that contain question marks. For example:
char c = '????'; // ERROR: Trigraph sequence expands to '??^ char d = '\?\?\?\?'; // OK
This pragma corresponds to the Expand Trigraphs option in the C/C++ Language Panel. To check whether this option is on, use __option (trigraphs), described in "Checking Options."