[Top][All Lists]

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

Re: passing a macro as an argument of macro

From: Andreas Schwab
Subject: Re: passing a macro as an argument of macro
Date: Sat, 31 Mar 2007 12:17:55 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux)

Vincent Torri <address@hidden> writes:

> dnl i want to use the 1st arg as a macro. Something like that:
> $1([have_xx="yes"], [have_xx="no"])
> ])
> MAIN_MACRO would be used that way:
> Is it possible ?


> If yes, what is the syntax I should use in MAIN_MACRO ?

You've already found out by yourself. :-) Just make sure you properly
quote the macro name in the argument, so that it isn't expanded too early.


Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

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