language
Syntax
#pragma language={extended|gnu|default|save|restore}
Parameters
| Enables the IAR language extensions from the first use of the pragma directive and onward. |
| Enables the GNU language extensions from the first use of the pragma directive and onward. |
| From the first use of the pragma directive and onward, restores the settings for language extensions to whatever that was specified by compiler options. |
| Saves and restores, respectively, the language extensions setting around a piece of source code. Each use of |
Description
Use this pragma directive to control the use of language extensions.
Example
At the top of a file that needs to be compiled with IAR extensions enabled:
#pragma language=extended /* The rest of the file. */
Around a particular part of the source code that needs to be compiled with IAR extensions enabled, but where the state before the sequence cannot be assumed to be the same as that specified by the compiler options in use:
#pragma language=save #pragma language=extended /* Part of source code. */ #pragma language=restore
See also
-e , --language, and ‑‑strict.