#ifndef MACRO_H #define MACRO_H // generic macros // dout << "This is a sample debug statement" << endl; // // dout is normally a comment // use #define _DEBUG where you want these to be shown // or use a -D compile time statement to see them all // -D_DEBUG #define COMMENT SLASH(/) #define SLASH(s) /##s #ifdef _DEBUG #include <iostream> #define dout std::cout #else #define dout COMMENT #endif #endif 1