[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie - having difficulty with a macro

From: John Christopher
Subject: Re: Newbie - having difficulty with a macro
Date: Sat, 1 Nov 2008 14:39:03 -0700 (PDT)

--- On Sat, 11/1/08, Eric Blake <address@hidden> wrote:

> [Please don't top-post]

I'm sorry.

> The other way is to recognize that you are using MACRO1 as
> a means of holding a text value, rather than a macro that
> you want expanded.  In other words, you want the definition
> of MACRO1 as the argument to m4_format, and not its expansion.

Yes, exactly.  Sorry I was not more clear.

> m4_format(m4_defn(`MACRO1'), `3', `2')
> does what you want, because the intermediate expansion is:
> m4_format(`%d foo, bar %d', `3', `2')

Yes, this solves my problem.  I get it now.
Thanks for your help.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]