¡@

Home 

c++ Programming Glossary: end_block

C++ Macro to conditionally compile code?

http://stackoverflow.com/questions/7372448/c-macro-to-conditionally-compile-code

START_BLOCK x if DebugVar #x char debugBuf 8192 #define END_BLOCK printf s n debugBuf #else #define START_BLOCK x void 0 #define.. s n debugBuf #else #define START_BLOCK x void 0 #define END_BLOCK void 0 #endif The issue is that if DEBUG is defined you could.. test char str Test is defined strcpy debugBuf str END_BLOCK START_BLOCK foo char str Foo is defined strcpy debugBuf str..