Skip to content

Instantly share code, notes, and snippets.

@grambas
Created May 23, 2017 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grambas/0e6937dea7f6e20551c86495ddab536b to your computer and use it in GitHub Desktop.
Save grambas/0e6937dea7f6e20551c86495ddab536b to your computer and use it in GitHub Desktop.
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