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:
.------------------------. V | >>-_Pragma--(--"----name--(--suboptions--)-+--"--)-------------><
For example, the statement:
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.