SQL/MX 3.2.1 Programming Manual for C and COBOL (H06.26+, J06.15+)
C/C++ Program Compilation
HP NonStop SQL/MX Release 3.2.1 Programming Manual for C and COBOL—663854-005
15-12
Preprocessor Functions
If the -I option is specified, the contents of a1.mxh, a2.mxh, and a3.mxh are
included in the output source file:
a1.sql
|
+-->a1.mxh
|
+-->a2.mxh
|
+-->a3.mxh
The following scenarios explain the behavior of the nested #include files:
In case 1, while processing nested #include files, the #include file a1.mxh which
is included circularly is not processed, and a warning 13089 is returned by the
preprocessor. The circular #include line is commented in the output source file.
Case 1:
a1.sql
|
+-->a1.mxh
|
+--->a2.mxh
|
+-->a1.mxh
In case 2, the #include file b1.mxh is not processed by the preprocessor.
Case 2:
b1.sql
|
+-->b1.mxh
|
+-->b1.mxh
As with any #include file inclusion, you must ensure that implementation of
conditional compilation does not result in repeated file inclusion.
When a C #pragma directive is contained in an included file, it is processed by the
preprocessor.










