pTAL Reference Manual (H06.08+)

Compiler Directives
HP pTAL Reference Manual523746-006
17-5
Example
Example
In Example 17-2 on page 17-5:
1. LIST is the default setting for the source file.
2. PUSHLIST pushes the LIST directive setting onto the LIST directive stack.
3. NOLIST suppresses listing of procedures included by the SOURCE directive.
4. POPLIST pops the top value from the LIST directive stack and restores LIST as
the current setting for the remainder of the source file.
Toggles
Toggles allow these directives to effect conditional compilation:
Topics:
Named Toggles on page 17-6
Numeric Toggles on page 17-6
Examples on page 17-6
Example 17-2. Pushing and Popping a Directive Stack
! LIST is the default setting for the source file
?PUSHLIST, NOLIST, SOURCE $SYSTEM.SYSTEM.EXTDECS (
? PROCESS_GETINFO_, FILE_OPEN_, WRITEREADX, READX)
?POPLIST
Directive Description
DEFINETOG
Specifies toggles without changing their settings. If DEFINETOG is
specifying a toggle for the first time, its setting is off.
SETTOG
Specifies toggles and turns them on
RESETTOG
Specifies toggles and turns them off
IF and IFNOT
Begin conditional compilation, based on the value of a specified toggle
ENDIF
Ends conditional compilation