__cplusplus

Preprocessor macro defined if compiling C++ source code.

Syntax
__cplusplus
  
Remarks

The compiler defines this macro when compiling C++ source code. This macro is undefined otherwise.

Related information
__ASSEMBLER__
__COMPILER__
__COUNTER__
__TARGETARCH__
__VERSION_NUM__
__VERSION__
__CWBUILD__
__CWCC__
__DATE__
__embedded_cplusplus
__FILE__
__func__
__FUNCTION__
__ide_target()
__LINE__
__MWERKS__
__optlevel
__PRETTY_FUNCTION__
__profile__
__STDC__
__TIME__