Skip to content

Macro invocation with continuation lines results in alternate lines being discarded.  #27

@srorso

Description

@srorso

If a macro is invoked with keyword parameters, one per line, with a continuation character on each line, the even numbered lines are dropped, e.g., second, fourth. etc. This operand skipping does not occur when positional operands are used.

So:

LABEL   MACINV KEY1=YES,KEY2=NO,    \
              KEY3=MAYBE,           \
              KEY4=DEFINITELY

KEY3=MAYBE will not be processed at all. Changing the snippet to:

LABEL   MACINV KEY1=YES,KEY2=NO,    \
              KEY3=MAYBE,           \
              KEY3=MAYBE,           \
              KEY4=DEFINITELY

causes KEY4 to be dropped, and the duplication of KEY3 is not reported.

I have attached a .zip containing a sample program and listing with two macro definitions and two invocations of each macro. The first macro uses keyword operands, and the second uses positional. The first invocation illustrates the issue and the second illustrates the work-around of duplicating all lines after the first. The macro just issues MNOTE instructions to echo the keyword operands provided.

ztest-999.zip

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions