pTAL Reference Manual (G06.24+, H06.09+, J06.03+)

Example 342 FIXERRS Macro
[#DEF MYFIXERRS MACRO |BODY|
FIXERRS %1%; SET <F9>, NEXTERR; SET <SF9>, PREVERR
]
Example 343 ERRORFILE Directive
! MYSOURCE file
?ERRORFILE myerrors ! Compiler reports errors and warnings
! to the file myerrors
!Global declarations
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.
Unlimited number of errorsDefault:
AnywherePlacement:
Applies to the compilation unitScope:
NoneDependencies:
A single error can cause many error messages. The compiler counts each error message separately.
If the compiler’s count exceeds the maximum you specify, the compiler terminates the compilation.
(Warning messages do not affect the count.)
Example 344 ERRORS Directive
! MYSOURCE file
?ERRORS 10 ! Stop compiling when 10 errors are found
!Global declarations
EXPORT_GLOBALS
EXPORT_GLOBALS
causes the compiler to define (rather than only declare) global data blocks, allocating space
for them and (optionally) giving them initial values, and causes the linker to include in the
program file all global data blocks declared up to the next occurrence of NOEXPORT_GLOBALS
or through the last declared global data block, whichever is first.
ERRORS 393