|
![](/i/fill.gif) |
On 16/01/2015 03:04, Anthony D. Baye wrote:
> Say I have a macro that returns values:
>
> #macro someMacroReturningAValue(params)
> #local _RESULT = foo;
> // do stuff here...
> _RESULT
> #end
>
> I can use this macro in a computation, thusly:
>
> object { bar translate someMacroReturningAValue(params)*x }
>
> but I cannot set the macro as the rValue of a declaration, like so:
>
> #declare blah = someMacroReturningAValue(params);
The below code runs fine here, does it work ok on your installation?
What are you doing differently (eg what is "params" defined as?). Can
you produce just a few lines that others can run to reproduce the problem?
#macro someMacroReturningAValue(params)
#local _RESULT = params * 2;
_RESULT
#end
#local p = 1;
#declare blah = someMacroReturningAValue(p);
Post a reply to this message
|
![](/i/fill.gif) |