Conditional compilation and conditional inclusion of a resource!

Hope you’ve heard of conditional compilation. Conditional compilation simply means what it says, i.e. compile only when a certain condition is true and it’s only meant for the compiler hence it should only take place during compilation. We do conditional compilation with help of preprocessor commands. For eg: [sourcecode language=’cpp’]void WhoIsNibu() {     // 😉 […]
Continue reading…

 

Conditional breakpoint

How to set a conditional breakpoint Add this code to your common include or some file where it’s meant to be used… [sourcecode language=’cpp’]#ifdef _DEBUG     #define CBREAK( condition ) if(( condition )){ _asm int 3; } #else     #define CBREAK( condition ) #endif //How to use this macro… void SomeFunction() {     for( int […]
Continue reading…