This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: macro behavior
- From: Zack Weinberg <zack at codesourcery dot com>
- To: "Jan Beulich" <JBeulich at novell dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: Thu, 14 Apr 2005 10:25:51 -0700
- Subject: Re: macro behavior
- References: <s25e8f7d.048@emea1-mh.id2.novell.com>
"Jan Beulich" <JBeulich@novell.com> writes:
> I'm having two issue with dealing with macro parameters:
>
> (1) If I want to append a constant suffix to the expanded string, I
> see no way to do so in default mode; in .altmacro mode I am able to do
> so using the & macro operator:
[...]
I just tripped over this myself. I would suggest the following
shell-like notation in default mode:
.macro m sym
.equiv \{sym}_, 1
.endm
This can't break anything else, because "{" is not currently an
acceptable name for a macro parameter. I don't currently have time to
implement it though.
zw