250
Pascal 4.0 User’s Guide
A
Example
The
%else
Directive
The
%else
directive provides an alternative action to the
%if
directive.
Syntax
%if
expression
%then
.
.
%else
.
.
%endif
The Pascal program,
debug.p
program debug_example(output);
{ This program demonstrates the use of the
%debug compiler directive. }
begin
writeln ('Hello, how are you?');
%debug; writeln ('Fine, thank you.');
end. { debug example }
The output when you compile
debug.p
without the
–cond
option
hostname% pc -xl debug.p
hostname% a.out
Hello, how are you?
The output when you use
–cond
hostname% pc -xl –cond debug.p
hostname% a.out
Hello, how are you?
Fine, thank you.
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: ......