Controls the use of non-standard language features.
Compatibility:This pragma is compatible with the following platform targets:
#pragma ANSI_strict on | off | reset
Remarks:
a = b; // This is a C++-style comment
void f(int ) {} /* OK, if ANSI Strict is off */
void f(int i) {} /* ALWAYS OK */#define add1(x) #x #1 /* OK, if ANSI_strict is off, but probably not what you wanted: add1(abc) creates "abc"#1 */ #define add2(x) #x "2" /* ALWAYS OK: add2(abc) creates "abc2" */
#endif. For example:
#ifdef __MWERKS__ /* . . . */ #endif __MWERKS__ /* OK, if ANSI_strict is off */ #ifdef __MWERKS__ /* . . . */ #endif /*__MWERKS__*/ /* ALWAYS OK */
This pragma corresponds to the ANSI Strict option in the C/C++ Language Panel. To check whether this option is on, use __option (ANSI_strict), described in "Checking Options."