Greg M. Johnson wrote:
Oi vey! Too much late-night coding, I guess. :-S
Yes, that's an abs() function. I wanted a sign() function and so was
writing my own.
Perhaps it was late-night delusions, but I did think that povray 3.5 (the
apt-get version) was freaking with me when it came to nested function/macro
calls.
> I cannot get the following code to work:
>
> //-----------------------------
> #macro sign(a)
> #if (a<0)
> (-a)
> #else
> (a)
> #end
> #end
Post a reply to this message
|