[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: value of a macro parameter and position of )
From: |
Andreas Schwab |
Subject: |
Re: value of a macro parameter and position of ) |
Date: |
Sun, 15 Feb 2009 10:41:11 +0100 |
User-agent: |
Gnus/5.110009 (No Gnus v0.9) Emacs/22.3 (gnu/linux) |
Vincent Torri <address@hidden> writes:
> Hey,
>
> i've written a macro with 2 parameters. Suppose that the macro name is
> FOO, if I use it like that in the configure.ac file:
>
> FOO([var1]
> ["yes"]
> )
Did you mean to write comma after [var1]? Without it there is only one
argument.
> the value of the 2nd parameter in the macro is not yes, but yes followed
> by a new line
See node Macro Arguments in the m4 documentation: only leading unquoted
whitespace is skipped when collecting macro arguments. All other
whitespace will become part of the argument.
Andreas.
--
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."