Example shows how to use a preprocessor macro for debug output. The debug code does not appear when not beeing compiled with the -DDEBUG switch or a #define DEBUG in the code itself .