probably retarded question about #define
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
wow, fast reply.
I tried that and it still doesn't compile... turns out my problem is somewhere else.
I tried that and it still doesn't compile... turns out my problem is somewhere else.
(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.
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
Popular Topics
Advertisement