pTAL Reference Manual (H06.08+)

Compiler Directives
HP pTAL Reference Manual523746-006
17-33
ERRORS
ERRORS
ERRORS sets the maximum number of error messages to allow before the compiler
terminates the compilation.
num-messages
is an unsigned decimal constant in the range 0 through 32,767 that represents the
maximum number of error messages to allow before the compilation terminates.
A single error can cause many error messages. The compiler counts each error
message separately. If the compilers count exceeds the maximum you specify, the
compiler terminates the compilation. (Warning messages do not affect the count.)
EXPORT_GLOBALS
Default: Unlimited number of errors
Placement: Anywhere
Scope: Applies to the compilation unit
Dependencies: None
Example 17-19. ERRORS Directive
! MYSOURCE file
?ERRORS 10 ! Stop compiling when 10 errors are found
!Global declarations
ERRORS
=
VST138.vsd
num-messages
EXPORT_GLOBALS
NOEXPORT_GLOBALS
PUSHEXPORT_GLOBALS
POPEXPORT_GLOBALS
VST662.vsd