POV-Ray : Newsgroups : povray.bugreports : Possible error of nested #if inside #macro : Re: Possible error of nested #if inside #macro Server Time
26 Apr 2024 12:21:39 EDT (-0400)
  Re: Possible error of nested #if inside #macro  
From: clipka
Date: 10 Jun 2014 06:05:16
Message: <5396d85c$1@news.povray.org>
Am 10.06.2014 08:47, schrieb BH:
> This is a report on a possible error of nested #if~#end inside #macro~#end.
>
> The rendering using following code was found to be failed.
> An error message, "line 5: Parse Error: All #declares of float, vector, and
> color require semi-colon ';' at end if the language version is set to 3.5 or
> higher. Either add the semi-colon or set the language version to 3.1 or lower.",
> was obtained.

Not really an error, just a quirk of the language. The following should 
work:

     #macro bb ()
       #if (1)
         #local result = 0.0;
       #end
       result
     #end


Post a reply to this message

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