POV-Ray : Newsgroups : povray.general : Explain this! : Re: Explain this! Server Time
11 Aug 2024 23:20:42 EDT (-0400)
  Re: Explain this!  
From: Margus Ramst
Date: 25 Apr 1999 22:15:15
Message: <3723be23.0@news.povray.org>
I received a solution - the macro call has to be enclosed in parantheneses.
It seems this is necessary when the output data is within a conditional
block, e.g.

#macro A(B) #if(B=B) (B) #end #end

Another way to solve the problem is to add parantheneses in the macro:

#macro A(B) (#if(B=B) (B) #end) #end

Still, I would like to know the reason for this behaviour.

Margus


Post a reply to this message

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