probably retarded question about #define

Started by
4 comments, last by doynax 18 years, 8 months ago
How do you define a symbol to be blank? Like so it just gets ignored. For example: #ifdef USE_INLINES #define blah_inline inline #else #define blah_inlie ??? #endif
Advertisement
You just write #define symbol
#ifdef USE_INLINES
#define blah_inline inline
#else
#define blah_inline
#endif
Free speech for the living, dead men tell no tales,Your laughing finger will never point again...Omerta!Sing for me now!
wow, fast reply.

I tried that and it still doesn't compile... turns out my problem is somewhere else.
post the code
(Assuming that piece of code wasn't just an example)
If you simply replace inline functions with global ones you may get linker errors if the file is included from multiple compilation units, try redefining it to static instead of nothing when inlines are disabled.

This topic is closed to new replies.

Advertisement