<[EMAIL PROTECTED]>[EMAIL PROTECTED] writes
>
>On 14-Nov-99 Jean-Francois Panisset wrote:
>>
>> I was playing around with the Template Graphics implementation of
>> OpenInventor, and in one of the include files, I found:
>>
>>#if defined(__glu_h__) && defined(GLU_VERSION_1_2)
>>
>> ....
>>
>> The solution was simple:
>>
>>#if (defined(__glu_h__) || defined(GLU_H)) && defined(GLU_VERSION_1_2)
>>
>> but this brings up the question: as we are heading towards a common
>> gl.h and glu.h (BTW, thanks for making the GLenums #defines, it made
>> my life a lot easier !), should this also extend to common include guards?
>
>Why do they test for the include file guard at all? Shouldn't
>"#if defined(GLU_VERSION_1_2)" be enough?
>
>Andree
Good question. I had a colleague who called this "belt and suspenders"
programming, i.e. to be sure not to lose your pants, you wear
both a belt and suspenders, and it usually ends up causing problems.
JF
Jean-Francois Panisset [EMAIL PROTECTED]
Software Engineer
Discreet Logic
_______________________________________________
Mesa-dev maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev