POV-Ray : Newsgroups : povray.bugreports : #if/#else/#end in nested macros--*possible* problem? : Re: #if/#else/#end in nested macros--*possible* problem? Server Time
15 May 2024 06:14:26 EDT (-0400)
  Re: #if/#else/#end in nested macros--*possible* problem?  
From: Kenneth
Date: 9 Sep 2009 12:50:01
Message: <web.4aa7dbeae0f8b7caf50167bc0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Kenneth schrieb:
> > Is it *possible* that macros-within-macros, each using #if
> > blocks--some WITH an #else statement and some without--might create a problem
> > for POV's core code trying to determine which #else statement to use for which
> > macro?
>
> No, unless there would be a serious bug somewhere in there.
>
> Such things can happen in languages where the if statement does not
> necessarily open a statement block...
>
> However, this cannot happen in POV-Ray, as each #if statement must
> always be matched by an #end, so there is never any ambiguity which #if
> an #else belongs to.
>

Thanks. I guess I need to go back over my entire code in even more detail (ugh!)
to see if I've left out anything. (My animation scene incorporates four
elaborate #include files!) But I'll also keep my 'safety measure' intact for
now. ;-)

Ken


Post a reply to this message

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