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

Description:
Specifies if subsequent source code should be translated as C or C++ source code.
Compatibility:
This pragma is compatible with the following platform targets:
Prototype:
#pragma cplusplus on | off | reset
Remarks:
When this pragma is on, the compiler compiles the code that follows as C++ code. When this option is off, the compiler uses the suffix of the filename to determine how to compile it. If a file's name ends in .cp, .cpp, or .c++, the compiler automatically compiles it as C++ code. If a file's name ends in .c, the compiler automatically compiles it as C code. You need to use this pragma only if a file contains a mixture of C and C++ code.
This pragma corresponds to the Activate C++ Compiler option in the C/C++ Language Panel. To check whether this option is on, use __option (cplusplus), 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