Is typedef a preprocessor directive? I would assume so because it works in code like this but it doesn't start with a #.
#ifdef UNICODE
typedef CHAR wchar_t;
#else
typedef CHAR char;
#endif
Is typedef a preprocessor directive? I would assume so because it works in code like this but it doesn't start with a #.
#ifdef UNICODE
typedef CHAR wchar_t;
#else
typedef CHAR char;
#endif
Oh wait. Yeah that was a dumb question sorry. Thinking of something else nvm.
You can put anything inside #if/#elif/#else etc directives. That's what they're for.
http://publib.boulder.ibm.com/infoce.../ref/pcond.htm
Anyway, I'm sure you've figured that out by now already . . . .
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.