HP aC++/HP C A.06.20 Programmer's Guide
#pragma [token-list]
Description
The #pragma directive is ignored by the preprocessor, and instead is passed on to the
HP aC++ compiler. It provides implementation-dependent information to HP aC++.
Any pragma that is not recognized by HP aC++ will generate a warning from the
compiler.
Example
#pragma OPTIMIZE ON
See for more information on pragmas.
Error Directive (#error)
The #error directive causes a diagnostic message, along with any included token
arguments, to be produced by HP aC++.
Syntax
error-directive ::=
#error [preprocessor tokens]
Example
// This directive will produce the diagnostic
// message "FLAG not defined!".
#ifndef FLAG
#error "FLAG not defined!"
#endif
// This directive will produce the diagnostic
// message "TABLE_SIZE must be a multiple of 256!".
#if TABLE_SIZE % 256 != 0
#error "TABLE_SIZE must be a multiple of 256!"
#endif
Warning Directive
The #warning directive causes a diagnostic message, along with any included token
arguments, to be produced by HP aC++.
Syntax
warning-directive ::=
#warning [preprocessor tokens]
Overview of the Preprocessor 167