[vtk-developers] Coding Standards and the C preprocessor
Thompson, David C
dcthomp at sandia.gov
Tue Feb 26 13:34:08 EST 2008
> 1) indentation. Should #if/#end blocks be indented? Whitespace before
> of after the #? I've seen:
> ...
> #ifdef foo
> #pragma bar
> #endif
I thought some older compilers did not allow indented hash marks. Since
VTK has a habit of supporting old compilers, perhaps that would be a
problem?
Personally, I prefer the hash marks in the first column and indentation
beyond that if required but that is less important than what compilers
will accept.
David
More information about the vtk-developers
mailing list