POV-Ray : Newsgroups : povray.general : macro limitation, why? : Re: macro limitation, why? Server Time
20 Nov 2024 10:38:38 EST (-0500)
  Re: macro limitation, why?  
From: Micha Riser
Date: 27 Sep 2001 08:35:02
Message: <9b6vo9.n83.ln@micha.riser>
Chris Colefax wrote:

> 
> Try enclosing your calls to the macro in brackets, i.e:
> 
> #declare one=(return1());
> #debug "done\n\n\n"
> 
> #if ((return1())=1)
>         #debug "done."
> #end
> 
> This should allow POV-Ray to correctly interpret the returned value, and
> things should work as expected.

Thanks, this works! It is a bit nicer than the workaround with an extra 
variable.

- Micha


Post a reply to this message

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