256
Pascal 4.0 User’s Guide
A
Syntax
%error
'
string
'
Comments
pc
does not produce an object file.
Example
The
%exit
Directive
The
%exit
directive instructs the compiler to stop processing the current
Pascal source file.
Syntax
%exit
The Pascal program,
error.p
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 }
error.p
produces this error if
you compile it without the
–config sparc
option.
hostname% pc -xl error.p
Tue Feb 28 17:10 1995 error.p
Line 12 :
%error 'Unknown architecture.'
E --------------------^---'Unknown architecture.'
Compilation failed
Содержание 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: ......