In the case of, for example, the main.cpp file, we can see the following directives all over the code:
Code: Select all
#ifdef DEBUG
debug() ...
#endif
- At the program head:
Code: Select all
#ifdef DEBUG
bool debug = true;
#else
bool debug = false;
#endif
Code: Select all
if(debug){
debug() ...
}