[Top][All Lists]

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

[bug #42617] Loaded Object Interface: function call doesn't take variabl

From: Bhavesh
Subject: [bug #42617] Loaded Object Interface: function call doesn't take variables as parameters
Date: Wed, 25 Jun 2014 19:16:10 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36


                 Summary: Loaded Object Interface: function call doesn't take
variables as parameters
                 Project: make
            Submitted by: bhavesh
            Submitted on: Wed 25 Jun 2014 07:16:09 PM GMT
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.0
        Operating System: None
           Fixed Release: None
           Triage Status: None



I am trying to call a function (registered with make) from within the

This is the documented way to call the registered function:

$(function_name param1,param2)

This does work properly. 
But when I try to call the function with parameters as variables to avoid
hard-coding the parameters every time:

PARAM := param2

$(function_name  param1,$(PARAM))

This call doesn't work at all. it sends $(PARAM) and $(PARAM2) as parameters
without expanding them. 
This is the my main question, I would like to see how this works with
variables as parameters. 

I also tried calling this function using the "call" directive:

$(call function_name,param1,$(PARAM2)) 

This call to the loaded function works fine. It sends the expansion of
$(PARAM2) as a variable unlike in the previous example.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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