In article <3c39f966@news.povray.org>,
"Rune" <run### [at] mobilixnet dk> wrote:
> It doesn't have anything to do with macros at all, as this also generates an
> error:
>
> #declare C = #if(1) 1 #else 2 #end ;
If you wrap the conditional in parentheses, it will work fine:
#declare C = (#if(1) 1 #else 2 #end);
#macro Test2() (#if(yes) 2 #end) #end
#local F = Test2();
--
--
Christopher James Huff <chr### [at] mac com>
Post a reply to this message
|