[vtk-developers] Coding Standards and the C preprocessor

Clinton Stimpson clinton at elemtech.com
Tue Feb 26 13:51:47 EST 2008


Thompson, David C wrote:
>> 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?
>   
I only know of makedepend that required hash marks in the first column.  
I don't know if it still does.
But with CMake, we don't use makedepend anyway.

Clint




More information about the vtk-developers mailing list