pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
Dependencies:
• If both CALL_SHARED and
NOCALL_SHARED appear in the
same compilation unit, the compiler
uses the one that appears last
• Do not use CALL_SHARED with
GP_OK
GP_OK (page 397)References:
CHECKSHIFTCOUNT
CHECKSHIFTCOUNT
generates code that causes an overflow trap if the number of positions in a bit-shift operation
is too large, as in:
INT j := 20;
INT i;
I := i << j;
(For more information about bit shifts, see Bit Shifts (page 94).)
NOCHECKSHIFTCOUNT
suppresses the generation of code that causes an overflow trap if the number of positions in a
bit-shift operation is too large.
CAUTION: If such a bit-shift operation occurs, subsequent program behavior is undefined.
PUSHCHECKSHIFTCOUNT
pushes the current setting (CHECKSHIFTCOUNT or NOCHECKSHIFTCOUNT) onto the
CHECKSHIFTCOUNT directive stack. Does not change the current setting.
POPCHECKSHIFTCOUNT
pops the top value from the CHECKSHIFTCOUNT directive stack and changes the current
setting to that value.
For an explanation of directive stacks, see Directive Stacks (page 369).
NOCHECKSHIFTCOUNTDefault:
AnywherePlacement:
Scope:
• CHECKSHIFTCOUNT applies to the shift operators that follow it until it is
overridden by NOCHECKSHIFTCOUNT
• NOCHECKSHIFTCOUNT applies to the shift operators that follow it until
it is overridden by CHECKSHIFTCOUNT
NoneDependencies:
384 Compiler Directives