pTAL Reference Manual (H06.08+)

Compiler Directives
HP pTAL Reference Manual523746-006
17-50
OVERFLOW_TRAPS
PUSHOVERFLOW_TRAPS
pushes the current setting (OVERFLOW_TRAPS or NOOVERFLOW_TRAPS)
onto the OVERFLOW_TRAPS directive stack. Does not change the current
setting.
POPOVERFLOW_TRAPS
pops the top value from the OVERFLOW_TRAPS directive stack and changes the
current setting to that value.
For an explanation of directive stacks, see Directive Stacks on page 17-4.
Default: pTAL compiler: OVERFLOW_TRAPS
EpTAL compiler: NOOVERFLOW_TRAPS
Placement: Before or between procedure declaration
s
Scope: From where the directive it occurs in the compilation until the directive is
overridden or the compilation ends, whichever occurs first
Dependencies: OVERFLOW_TRAPS is overridden by:
NOOVERFLOW_TRAPS procedure attribute
DISABLE_OVERFLOW_TRAPS block attributes
NOOVERFLOW_TRAPS is overridden by:
OVERFLOW_TRAPS procedure attribute
ENABLE_OVERFLOW_TRAPS block attributes
References: See Managing Overflow Traps
on page 13-1
Example 17-26. OVERFLOW_TRAPS Compiler Directive
?OVERFLOW_TRAPS ! Correct
PROC p;
BEGIN
?NOOVERFLOW_TRAPS ! Incorrect: OVERFLOW_TRAPS must appear
... ! between procedure declarations
END;
?NOOVERFLOW_TRAPS ! Correct
PROC q;
BEGIN
...
END;