HP 3000 Manuals

##include [ VIRTUOSO CODE GENERATOR Reference Manual ] MPE/iX 5.0 Documentation


VIRTUOSO CODE GENERATOR Reference Manual

#include 

Statement that directs the generator to process a particular file.

Syntax 

     #include file="file-name" [optional="value"]

Keywords 

file-name        is the name of the source file that is to be be merged
                 into the current file.  The name must appear as a string
                 literal enclosed in quotes.

value            is the value, either YES or NO, where YES specifies that
                 the INCLUDE file is optional.  The default is NO.

Description 

The #include construct lets you merge a file into the current file being
processed.  The #include construct is often used in models to include
user-specific code during generation.

If the file specified does not exist or cannot be opened, an error is
written to the listing file and generation is terminated.  When the
optional option is used with a value of YES, no error occurs if the file
does not exist.

Nesting of #include constructs is allowed, but remember that the nesting
limit is 40.  That is, there cannot be more than 40 nesting levels in
existence at one time.  This includes nesting of #for/#endfor,
#if/#endif, #include, #block/#endblock, #entry/#endentry and macros.

Examples 

#include file="UPDATE.MAC"

The above statement instructs the generator to open and process the file
UPDATE.MAC.



MPE/iX 5.0 Documentation