POV-Ray : Newsgroups : povray.general : Is this a bug? : Re: Is this a bug? Server Time
6 Aug 2024 02:26:07 EDT (-0400)
  Re: Is this a bug?  
From: Scott Wasson
Date: 19 Jun 2002 11:33:39
Message: <3d10a453$1@news.povray.org>

news:2151hu4iabm314mvp8sb0bi1i3inn3ghdq@4ax.com...
> Consider such example
>
>1 //START
>2  #macro fooTexture()
>3   texture { pigment { rgb y } }
>4     #if (Condition)
>5       #declare TMP=texture{ pigment{ rgb x } }
>6     #end
>7     texture{ pigment { rgb z } }
>8   #end
>9   #declare foo_texture = fooTexture()
>10 //END

Conditional directives are nesting.  Therefore the #end on line 6 closes the
#if on line 4, and the #end on line 8 closes the #macro on line 2.  What am
I missing?

-Scott


Post a reply to this message

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