A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Table A-1 cppas Compiler Directives (Continued)

 

 

 

 

 

Compiler

 

 

 

Directive

Description

 

 

 

 

%exit

Stops processing the current Pascal source file.

 

 

 

 

%if

When the compiler encounters a %if expression %then directive, it

 

 

evaluates expression. If expression is true, pc executes the statements

 

 

after %then. If expression is false, pc skips over %then.

 

 

 

 

%ifdef

Determines whether or not you previously defined a conditional

 

 

variable in a %var directive.

 

 

 

 

%include

Inserts the lines from the specified file into the input stream.

 

 

 

 

%list

Enables a listing of the program.

 

 

 

 

%nolist

Disables the program listing.

 

 

 

 

%slibrary

Inserts the lines from the specified file into the input stream. Same as

 

 

%include.

 

 

 

 

%var

Defines conditional variables.

 

 

 

 

%warning

Prints a warning string on the standard output.

 

 

 

 

The rest of this appendix contains detailed descriptions and examples of each directive.

The %config Directive

The %config directive is a predefined conditional variable with a value of either true or false.

Syntax

%config

Comments

%config is true when you compile your program with the -configoption; otherwise, %config is false.

Use %config in an %if, %ifdef, %elseif, or %elseifdef directive to catch any undefined values specified with -config. Do not define %config in the %var directive.

Pascal Preprocessor

247