Pragma directives

A pragma is an implementation-defined instruction to the compiler. It has the general form:

#pragma directive syntax

Read syntax diagramSkip visual syntax diagram #pragma STDCcharacter_sequencenew-line
The character_sequence is a series of characters giving a specific compiler instruction and arguments, if any. The token STDC indicates a standard pragma; consequently, no macro substitution takes place on the directive. The new-line character must terminate a pragma directive.

The character_sequence on a pragma is not subject to macro substitutions.

Note: C only You can also use the _Pragma operator syntax to specify a pragma directive; for details, see The _Pragma preprocessing operator. C only

More than one pragma construct can be specified on a single pragma directive. The compiler ignores unrecognized pragmas.

Standard C pragmas are described in Standard pragmas. IBM extension Pragmas available for z/OS® XL C/C++ are described in z/OS XL C/C++ pragmas. IBM extension