HP C A.06.05 Reference Manual

Preprocessing Directives
Overview of the Preprocessor
Chapter 7 187
Pragmas are implementation-dependent instructions that are directed to the compiler.
Because they are very system dependent, they are not portable.
All preprocessing directives begin with a pound sign (#) as the first character in a line of a
source file. White space may precede the # character in preprocessing directives. The #
character is followed by any number of spaces and horizontal tab characters and the
preprocessing directive. The directive is terminated by a new-line character. You can continue
directives, as well as normal source lines, over several lines by ending lines that are to be
continued with a backslash (\).
Comments in the source file that are not passed through the preprocessor are replaced with a
single white-space character.
Examples
include-directive
: #include <stdio.h>
macro-directive
: #define MAC x+y
conditional-directive
: #ifdef MAC
line-directive
: #line 5 "myfile"
pragma-directive
: #pragma INTRINSIC func