#pragma
Preprocessor directive
Syntax
`
#pragma option [ =value ]
` Or`
#pragma push ( option )
` Or`
#pragma pop ( option )
`
Parameters
Possible values for `option` and related `value`s:

Option | Value | Description
msbitfields | 0 | Use bitfields compatible with gcc (default)
| (nonzero) | Use bitfields compatible with those used in Microsoft C compilers
once | N/A | cause the source file in which the pragma appears to behave as though it was included with #include once ...

Description
Allows the setting of compiler options inside the source code.
Example
`
'' save the current pragma setting
#pragma push(msbitfields)
'' switch to MSVC-compatible bitfields
#pragma msbitfields=1
'' do something that requires MS-compatible bitfields here
'' restore original setting
#pragma pop(msbitfields)
`
Differences from QB

- New to FreeBASIC

See also

- `#include`