POV-Ray : Newsgroups : povray.general : macro limitation, why? : macro limitation, why? Server Time
7 Aug 2024 13:20:59 EDT (-0400)
  macro limitation, why?  
From: Micha Riser
Date: 26 Sep 2001 12:25:00
Message: <4evso9.0s3.ln@micha.riser>
Why does following not parse in POV (3.1):

----------------------
#macro return1()
        #if (1=1)
         1
        #end    
#end

#declare one=return1()
#debug "done\n\n\n"

#if (return1()=1)
        #debug "done."
#end
----------------------

... 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?

- Micha


Post a reply to this message

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