Description
The #pragma langlvl directive selects the C language level for compilation.
Syntax
This pragma can be specified only once in a source file, and it must appear before any statements in a source file. The compiler uses predefined macros in the header files to make declarations and definitions available that define the specified language level.
| ansi | Defines the predefined macros __ANSI__ and __STDC__ and undefines other langlvl variables. Allows only language constructs that conform to ANSI/ISO C standards. |
| extended | Defines the predefined macro __EXTENDED__ and undefines other langlvl variables. The default language level is extended. |
| Defines the predefined macro __CLASSIC__ and undefines other langlvl variables. | |
| saa | Defines the predefined macro __SAA__ and undefines other langlvl variables. Allows only language constructs that conform to the most recent level of SAA C standards (currently Level 2). These include ANSI C constructs. This language level is valid for C programs only. |
| saal2 | Defines the predefined macro __SAAL2__ and undefines other langlvl variables. Allows only language constructs that conform to SAA Level 2 C standards. These include ANSI C constructs. This language level is valid for C programs only. |
The langlvl configuration file options lang(level, ansi), lang(level, extended), lang(level, classic), lang(level, saa), and lang(level, saal2) have the same effect as this pragma.
![]()
Preprocessor Directives - An
Overview
Preprocessor Directive -
#pragma
![]()
level Language Option -
lang(level, ... )
