Pascal Preprocessor
247
A
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
-config
option;
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.
%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.
Table A-1
cppas
Compiler Directives (Continued)
Compiler
Directive
Description
Содержание SunSoft Pascal 4.0
Страница 14: ...xiv Pascal 4 0 User s Guide ...
Страница 16: ...xvi Pascal 4 0 User s Guide ...
Страница 30: ...6 Pascal 4 0 User s Guide 1 ...
Страница 160: ...136 Pascal 4 0 User s Guide 6 ...
Страница 268: ...244 Pascal 4 0 User s Guide 11 ...
Страница 320: ...296 Pascal 4 0 User s Guide B ...
Страница 331: ...Index 307 ...
Страница 333: ......