Skip to main content

IAR Embedded Workbench for RL78 5.20

language

In this section:
Syntax
#pragma language={extended|gnu|default|save|restore}
Parameters

extended

Enables the IAR language extensions from the first use of the pragma directive and onward.

gnu

Enables the GNU language extensions from the first use of the pragma directive and onward.

default

From the first use of the pragma directive and onward, restores the settings for language extensions to whatever that was specified by compiler options.

save|restore

Saves and restores, respectively, the language extensions setting around a piece of source code.

Each use of save must be followed by a matching restore in the same file without any intervening #include directive.

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.