In VC++ 2005, I noticed the scope of any #define's is confined to a single translation unit. In particular, this means that standard inclusion guards of the type
[code=cpp]
#ifndef INCLUDED
#define INCLUDED
[header code...]
#endif
[/code]
would not work. Is there any way to extend the scope of preprocessor definitions beyond a single translation unit and without using compiler switches or unportable #pragmas?
[code=cpp]
#ifndef INCLUDED
#define INCLUDED
[header code...]
#endif
[/code]
would not work. Is there any way to extend the scope of preprocessor definitions beyond a single translation unit and without using compiler switches or unportable #pragmas?
Comment