[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


trigraphs

Description:

Controls the use ANSI/ISO trigraph sequences.

Compatibility:

This pragma is compatible with the following platform targets:

68K

PowerPC

NEC V800

Intel x86

MIPS

Embedded 68K

Prototype:
  #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."


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000