Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
C++ Snippets
#ifdef DEBUG
#define DEBUG_MSG(str) do { std::cout << str << std::endl; } while( false )
#else
#define DEBUG_MSG(str) do { } while ( false )
#endif
int main()
{
DEBUG_MSG("Hello" << ' ' << "World!" << 1 );
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment