++include <fspec>
The ++include compiler directive causes the file specified by fspec to be processed as if it were part of the file being compiled. The technique is useful for sharing common code, map statements, and definitions between programs. The fspec may be in either AMOS or native format. If no explicit location specified the file is expected to be in the current directory, or in the BAS: account. If not found in either location, the A-Shell compiler—unlike the AMOS counterpart—will also search in the same directory as the main source file being compiled, assuming that is different from the current directory.
While the ++include feature has been part of AlphaBASIC since the earliest days, A-Shell adds a number of enhancements. See the links listed below, as well as the documentation on COMPIL /LI (Local Include).
Subtopics