POV-Ray : Newsgroups : povray.general : A macro that drops a vector-- what's the syntax again? : Has this bug been reported? Server Time
1 Aug 2024 10:11:48 EDT (-0400)
  Has this bug been reported?  
From: John VanSickle
Date: 11 Nov 2005 17:32:03
Message: <43751be3$1@news.povray.org>
Greg M. Johnson wrote:

> I cannot get the following code to work:
> 
> //-----------------------------
> #macro sign(a)
> #if (a<0)
>         (-a)
> #else
>         (a)
> #end
> #end

I've noticed that this way of using macros to express things leads to 
parse errors.  There is a work-around (which has already been posted), 
but the docs give no reason for this construction to fail.  Is this 
behavior deemed worthy of correction?

Regards,
John


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.