c++ Programming Glossary: start_block
C++ Macro to conditionally compile code? http://stackoverflow.com/questions/7372448/c-macro-to-conditionally-compile-code like Simplified from the real version #if DEBUG #define START_BLOCK x if DebugVar #x char debugBuf 8192 #define END_BLOCK printf.. 8192 #define END_BLOCK printf s n debugBuf #else #define START_BLOCK x void 0 #define END_BLOCK void 0 #endif The issue is that if.. issue is that if DEBUG is defined you could do things like START_BLOCK test char str Test is defined strcpy debugBuf str END_BLOCK..
|