|
|
Am 28.12.2016 um 08:07 schrieb dick balaska:
> I could have sworn I saw in the include menu samples (or somewhere in
> the distribution) a wab of code like:
> #if (xfoo=1) xbar1 #else #if (xfoo=2) xbar2 #end #end
> #if (yfoo=1) ybar1 #else #if (yfoo=2) ybar2 #end #end
> #if (zfoo=1) zbar1 #else #if (zfoo=2) zbar2 #end #end
>
> or somesuch. There were lots of nested #ifs on a single line, then
> operated on the 3 axis. Maybe it was in a macro?
>
> Anyway, my mighty povclipse parser threw up on that. I said "huh, I'll
> have to get back to that" but I didn't make note of where I saw it.
No two `#end` directives on the same line in the entire official
distribution.
There is an `#if ( #if ( ... ) #end ) #end` construct mentioned in the
documentation about `#if`, but that very construct is only mentioned as
something kids shouldn't try at home, as it apparently sends even
POV-Ray's own parser reeling.
Post a reply to this message
|
|