POV-Ray : Newsgroups : povray.general : Macros in 3.1 (not a bug report!) : Macros in 3.1 (not a bug report!) Server Time
13 Aug 2024 17:21:53 EDT (-0400)
  Macros in 3.1 (not a bug report!)  
From: Alan Grainger
Date: 17 Jul 1998 17:23:58
Message: <35afb2de.0@news.povray.org>
How do you exit from a macro?  For instance, you have called a macro, and a
certain condition is reached, and you want the macro to exit.  How?

#macro DoMacro ( a, b, c )
    blah blah...
    #if ( something = true )
        #endmacro
    #end
    more junk...
#end

Also, is there any way to goto somewhere?

#macro DoMacro ( a, b, c )
    blah blah...
here:
    blah blah...
    #if ( something = true )
        #goto here
    #end
    more stuff...
#end

Thanks for any help.  :)

--
Alan Grainger
E-mail - scy### [at] geocitiescom
Homepage - http://alansworld.home.ml.org


Post a reply to this message

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