The #pragma directive is an implementation-defined directive that allows various instructions to be given to the compiler. For example, a compiler may have an option to support the tracing of program execution. A trace option would then be specified by a #pragma statement. You must check your compiler’s documentation for the pragmas it supports.

The C99 _Pragma Operator

C99 includes another way to specify a pragma in a program: the _Pragma operator. It has this general form:

_Pragma ( "directive")

Here, directive is the pragma being invoked. The _Pragma operator was added to allow pragmas to participate in macro replacement.

The C99 Built-In Pragmas

C99 defines the following built-in pragmas:





When on, floating-point expressions are treated as indivisible units that are handled by hardware-based methods. The default state is implementation defined.



Tells the compiler that the floating-point environment might be accessed. The default state is implementation defined.



When on, tells the compiler that certain formulas involving complex values are safe. The default state is off.

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net