Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP C/HP-UX Reference Manual: HP-UX Systems > Chapter 7 Preprocessing Directives

Pragma Directive (#pragma)

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

You can provide instructions to the compiler through inclusion of pragmas.

Syntax

pragma-directive ::=
#pragma replacement-list

Description

The #pragma preprocessing directive provides implementation-dependent information to the compiler. See Chapter 9 “Compiling and Running HP C Programs ” for descriptions of pragmas recognized by HP C/HP-UX. Any pragma that is not recognized by the compiler is ignored.

Example

#pragma OPTIMIZE ON

#pragma OPTIMIZE OFF

This pragma is used to toggle optimization on/off for different sections of source code as these pragmas are encountered in a top to bottom read of a source file.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.