Pascal Preprocessor
259
A
Comments
expression consists of a conditional variable and the optional
boolean
operators
and
,
or
, and
not
. See the
%else
listing for examples of expression.
%ifdef
is especially useful for determining whether or not a conditional
variable has been declared in an
include
file.
Example
See the example in “The %elseifdef Directive.”
The
%include
Directive
The
%include
directive inserts lines from the specified file in the input
stream.
Syntax
%include
'
filename
'
;
Comments
When
cppas
encounters the
%include
directive, it inserts the lines from the
file name into the input stream.
Example
The program unit,
include_prog.p
program include_prog;
%include 'extern.h';
begin
global := 1;
writeln('From MAIN, before PROC: ',global);
proc;
writeln('From MAIN, after PROC: ',global);
end. { include_prog }
Summary of Contents for SunSoft Pascal 4.0
Page 14: ...xiv Pascal 4 0 User s Guide ...
Page 16: ...xvi Pascal 4 0 User s Guide ...
Page 30: ...6 Pascal 4 0 User s Guide 1 ...
Page 160: ...136 Pascal 4 0 User s Guide 6 ...
Page 268: ...244 Pascal 4 0 User s Guide 11 ...
Page 320: ...296 Pascal 4 0 User s Guide B ...
Page 331: ...Index 307 ...
Page 333: ......