help-make
[Top][All Lists]
Advanced

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

Re: Comments in user function variables


From: Lane Schwartz
Subject: Re: Comments in user function variables
Date: Wed, 13 Jul 2011 12:50:29 -0400

On Wed, Jul 13, 2011 at 12:43 PM, Lane Schwartz <address@hidden> wrote:
> I've encountered some unexpected behavior when defining a complex
> variable that's later accessed using eval or call.

Sorry - hit Send accidentally.

Here's an example:

define FOO
# $(error Here's a line that should be commented out)
bar baz
endef

BAR:=$(call FOO)


When this code is run, the error function is called, despite the fact
that it's commented out.

Is this the correct expected behavior? It seems to me that comments
within such multi-line variable definitions should respected, but
aren't always.

Thanks,
Lane



reply via email to

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