POV-Ray : Newsgroups : povray.general : macro limitation, why? : Re: macro limitation, why? Server Time
7 Aug 2024 13:18:12 EDT (-0400)
  Re: macro limitation, why?  
From: Chris Colefax
Date: 27 Sep 2001 07:45:46
Message: <3bb3116a@news.povray.org>
Micha Riser <mri### [at] gmxnet> wrote:
> Why does following not parse in POV (3.1):
[snip]
> ... gives " xxx.pov:3: error: ) expected but # found instead. "
>
> I could not find anything in the docs saying that this is not possible. Is
> it working in 3.5beta?

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.


Post a reply to this message

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