Pascal Preprocessor
257
A
Comments
If the compiler encounters an
%exit
directive within an
include
file, it stops
processing the
include
file, but continues processing the source file in which
it is included. In effect,
%exit
is equivalent to an end-of-file marker.
When the compiler processes an
%exit
directive within an
%if
or
%ifdef
construct, it closes all
%if
or
%ifdef
s before it stops processing the current
file.
Example
The
%if
Directive
The
%if
directive is a conditional branching directive.
Syntax
%if e
xpression
%then
.
.
%end if
The Pascal program,
exit_directive.p
program exit_directive(output);
begin
writeln('Hello, world!')
end. { exit_directive }
%exit
Everything after the %exit is ignored.
So you can put anything here.
The commands to compile and
execute
exit_directive.p
hostname% pc -xl exit_directive.p
hostname% a.out
Hello, world!
Содержание 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: ......