|
![](/i/fill.gif) |
In article <m3k### [at] clodomir rezel enst fr> ,
rol### [at] casimir rezel enst fr (Roland Mas) wrote:
> Hi all.
>
> I have a question about indentation. I fear it might degenerate
> into another flamewar, but heh, such is life. On the other hand, it
> might bring some arguments to Ken Tyler.
>
> Suppose you have the following lines:
>
> #if (A > 0)
> union {
> #endif
> sphere { ... }
> #if (A > 0)
> sphere { ... }
> }
> #endif
>
> How would you indent?
#if (A > 0)
union
{
#endif
sphere { ... }
#if (A > 0)
sphere { ... }
}
#endif
OR BETTER
#declare mySphere1 = sphere { ... }
#declare mySphere2 = sphere { ... }
#if (A > 0)
union
{
sphere { mySphere1 }
sphere { mySphere2 }
}
#else
sphere { mySphere1 }
#endif
Thorsten
Post a reply to this message
|
![](/i/fill.gif) |