ILE C/C++ Language Reference


Pragma Directives (#pragma)

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

              .--------------------.
              V                    |
>>-#--pragma----character_sequence-+--new-line-----------------><
 
 

where character_sequence is a series of characters giving a specific compiler instruction and arguments, if any. The new-line character must terminate a pragma directive.

The character_sequence on a pragma is subject to macro substitutions. For example,

#define
XX_ISO_DATA
isolated_call(LG_ISO_DATA)
// ...
#pragma XX_ISO_DATA

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


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]