View Single Post
Old Apr 28th, 2005, 9:59 AM   #9
Eggbert
Professional Programmer
 
Eggbert's Avatar
 
Join Date: Nov 2004
Posts: 250
Rep Power: 5 Eggbert is on a distinguished road
>sometimes defining a constant without a value isn't a hot idea
Only when working with legacy code and very old compilers. Any compiler that correctly supports ISO C89 should have no trouble with it.

>Obviously, don't use _HEADER_FILE_H_ as the name of your constant, but
>something more directly related to what you're working on
Don't use a name with a leading underscore for this use either, as that invades the implementation's name space.
Eggbert is offline   Reply With Quote