TAL Reference Manual
Compiler Directives
TAL Reference Manual—526371-001
16-69
Usage Considerations
toggle-name
is a named toggle to turn off. You must specify each named toggle you want to turn
off.
toggle-number
is a numeric toggle to turn off. Specify an unsigned decimal constant in the range 1
through 15. Leading zeros are ignored. RESETTOG with no arguments turns off all
numeric toggles but does not affect named toggles.
Usage Considerations
RESETTOG can appear anywhere in the source code and in the compilation
command.
RESETTOG without a parenthesized list must be the last directive on the line. When
RESETTOG has a parenthesized list, other directives can follow on the same line, with
a comma separating the closing parenthesis from the next directive.
RESETTOG interacts with the IF, IFNOT, and ENDIF directives. IF and IFNOT test the
setting of toggles and mark the beginning of conditional compilation. ENDIF marks the
end of conditional compilation.
Named Toggles
Before you use a named toggle in an IF or IFNOT directive, you must specify that
name in a DEFINETOG, SETTOG, or RESETTOG directive. Which of these directives
you use depends on whether you want settings of named toggles unchanged or turned
on or off:
Numeric Toggles
You can use a numeric toggle in an IF or IFNOT directive, even if that number has not
been specified in a RESETTOG, SETTOG, or DEFINETOG directive.
By default, all numeric toggles not turned on by SETTOG are turned off. To turn off
numeric toggles turned on by SETTOG, use RESETTOG.
Directive
Setting of New
Toggle Setting of Specified Existing Toggle
DEFINETOG Off Unchanged
SETTOG On On
RESETTOG Off Off