HP SunSoft Pascal 4.0 Manual de usuario Pagina 280

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 333
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 279
256 Pascal 4.0 Users 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
Vista de pagina 279
1 2 ... 275 276 277 278 279 280 281 282 283 284 285 ... 332 333

Comentarios a estos manuales

Sin comentarios