POV-Ray : Newsgroups : povray.unofficial.patches : MegaPOV quirks and questions.. : Re: MegaPOV quirks and questions.. Server Time
2 Sep 2024 00:17:34 EDT (-0400)
  Re: MegaPOV quirks and questions..  
From: Thorsten Froehlich
Date: 25 Jul 2000 04:13:15
Message: <397d4c1b@news.povray.org>
In article <397D11B1.18DE50F5@tiac.net> , Alex Vandiver <van### [at] tiacnet>
wrote:

> #macro a(foo)
>   #if (foo)
>     #macro b()
>       // do one thing
>     #end // macro b, first possibility
>   #else
>     #macro b()
>       // do something else
>     #end // macro b, second possibility
>   #end // if statement
> #end // macro a
>
> ..which unfortunatly can't be unrolled in the way you describe.

Yes it can:

#macro b_version1()
  // do one thing
#end // macro b, first possibility

#macro b_version2()
  // do something else
#end // macro b, second possibility

#macro a(foo)
  #if (foo)
    // call b_version1
  #else
    // call b_version2
  #end // if statement
#end // macro a


Post a reply to this message

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