Hi all, odd question time again.
I see include guards (I believe that is what they are called) used all the time. But I am not 100% sure of their use and syntax. There is nothing in the books that I own, and I can't find a great deal on the net, (but I may be searching for the wrong terms). I am pretty sure they are used to prevent a header file being included multiple times.
a: Why the preceding double underscore?
b: I read somewhere that the double underscore shouldn't be
used for user defined header files, as these are reserved for
internal use, and users should use a single underscore.
Is this true?
Code:#ifndef __GAMEVERSION_H #define __GAMEVERSION_H #define VERSION_NUMBER 1 #endif