![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-549395280x1.png)
A
Syntax
%error 'string'
Comments
pc does not produce an object file.
Example
The Pascal program, error.p
error.p produces this error if you compile it without the
program error_example(output);
{This program demonstrates the use of the %error compiler directive. }
%var arch
begin
%if arch %then
writeln('This is a SPARC computer.'); %else
%error 'Unknown architecture.' %endif
end. { error_example }
hostname% pc | error.p | |
Tue Feb | 28 17:10 | 1995 error.p |
Line 12 | : %error 'Unknown architecture.' | |
E |
Compilation failed
The %exit Directive
The %exit directive instructs the compiler to stop processing the current Pascal source file.
Syntax
%exit
256 | Pascal 4.0 User’s Guide |