Pragma directive syntax
XL C/C++ supports the following forms of pragma
directives:
- #pragma name
- This
form uses
the following syntax:
.------------------------. V | >>-#--pragma----name--(--suboptions--)-+-----------------------><
The name is the pragma directive name, and the suboptions are any required or optional suboptions that can be specified for the pragma, where applicable.
- _Pragma ("name")
- This form uses
the following syntax:
For example, the statement:.------------------------. V | >>-_Pragma--(--"----name--(--suboptions--)-+--"--)-------------><
is equivalent to:_Pragma ( "pack(1)" )
#pragma pack(1)
The name on a pragma is subject to macro substitutions, unless otherwise stated. The compiler ignores unrecognized pragmas, issuing an informational message indicating this.