POV-Ray : Newsgroups : povray.general : Explanation of recursive macros. : Re: Explanation of recursive macros. Server Time
8 Aug 2024 22:16:12 EDT (-0400)
  Re: Explanation of recursive macros.  
From: KalleK
Date: 13 Sep 2000 03:09:49
Message: <39bf283d$1@news.povray.org>
BigCeef wrote:
> Also, your code generated the following warning, which I've been unable to
> remedy.
>
> memory macro: 22: warning : Should have at least 2 objects in csg.
> Degenerate CSG bounding box (not used!)
>
> Well, there are more than 2 objects in the union. Huh?

The macro calls itself. What Povray gets finally is a union of unions of
unions and so on. And it happens, that (L<= 0). In this case, it produces an
union with nothing in it.
union {
 #if (False)
  /* this part is ignored */
 #end
}
There are no objects in this union. That driggers the #warning.
I hope, i can help.
KK


Post a reply to this message

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