[Top][All Lists]

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

[bug #44464] gmk_add_function retains ptr to name it's given

From: Brian Vandenberg
Subject: [bug #44464] gmk_add_function retains ptr to name it's given
Date: Sat, 07 Mar 2015 09:59:39 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/40.0.2214.111 Chrome/40.0.2214.111 Safari/537.36

Follow-up Comment #2, bug #44464 (project make):

What I'm using it for is a way to create a number of functions that can be
used like $(if) but they test a specific condition and only evaluate either
the true or false part, not both.  For example:


$(setstate if_something, $(ifdef some_variable, true, false))

# ... later on ...

$(if_something $(info yes), $(error no))


With existing make syntax I'd need to do something like this:


$(if $(filter undefined, $(origin some_variable)), $(info yes), $(error no))


... in order to avoid having $(error) kill the build.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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