View Single Post
Old 01 April 2021, 11:29   #6
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,522
Quote:
Originally Posted by roondar View Post
For some reason I thought REPTN couldn't be used as a macro argument
It can't. The text given as macro arguments is never interpreted in any way, but just pasted into the macro source text at the positions marked with \1, \2, etc...

So when you call the original macro as
TDMR1COL REPTN
, you will get eight times the same label
.td_mr1_REPTN:
as REPTN is regarded being part of the label name.

Therefore you have to use
\<symbol>
within the macro to make the parser insert the current symbol's value instead. It has nothing to do with any argument given to the macro.

EDIT: Maybe I confused you by designating
\<symbol>
as "special macro argument", like all other codes starting with '\' within a macro. These escape codes always insert some text, but only in some cases this text will be directly taken from an argument given to the macro. Refer to the documentation.

Last edited by phx; 01 April 2021 at 11:36. Reason: Special macro argument
phx is offline  
 
Page generated in 0.04505 seconds with 11 queries