help-make
[Top][All Lists]
Advanced

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

Re: how to compare 2 numeric values inside a macro


From: Mason
Subject: Re: how to compare 2 numeric values inside a macro
Date: Thu, 05 Jun 2014 11:29:26 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26

On 04/06/2014 21:20, patrick wrote:

> Is there any way to compare 2 numeric values inside a macro, the
> numeric values should be the parameters, for example something like this:
> 
> define compare
>   $(if ($(1)>$(2)),yes,no)
> endef

Have you seen the answers to your previous questions?
(Some may even apply to your future questions.)

I don't think make supports arithmetic natively.

You could use the shell. You could also use the GMSL.

http://gmsl.sourceforge.net/

-- 
Regards.



reply via email to

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