one c macro to rule them all
June 29th, 2008
No comments
or how to comment a line using the precompiler: http://www.ddj.com/cpp/184401344
the short version for the impatient:
1 2 3 4 5 6 7 8 9 | #ifdef _DEBUG #define DEBUGCLASS myClass::getSingleton() #else #define COMMENT SLASH(/) #define SLASH(s) /##s #define DEBUGCLASS COMMENT #endif DEBUGCLASS.dosomething(); |
Categories: coding