pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
Scope:
• DEFEXPAND applies to subsequent code it until it is overridden by
NODEFEXPAND
• NODEFEXPAND applies to subsequent code until it is overridden by
DEFEXPAND
DEFEXPAND has no effect if NOLIST or SUPPRESS is activeDependencies:
References:
• LIST (page 401)
• SUPPRESS (page 420)
In the DEFEXPAND listing, the DEFINE body appears on lines following the DEFINE identifier. In
the listing:
• All letters are uppercase.
• No comments, line boundaries, or extra blanks appear.
• The lexical level of the DEFINE appears in the left margin, starting at 1.
• Parameters to the DEFINE appear as #n, where n is the sequence number of the parameter,
starting at 1.
Example 341 DEFEXPAND Directive
?DEFEXPAND ! List expanded DEFINEs
DEFINE increment (x) = x := x + 1#; ! Expanded DEFINE
DEFINE decrement (y) = y := y - 1#; ! Expanded DEFINE
! Other global data declarations
DEFEXPAND 387