Skip to content

Instantly share code, notes, and snippets.

@yuya-oc
Last active October 1, 2015 17:08
Show Gist options
  • Save yuya-oc/2028467 to your computer and use it in GitHub Desktop.
Save yuya-oc/2028467 to your computer and use it in GitHub Desktop.
Print variable name and value via std::cout
#define print(var) {std::cout<<#var"= "<<std::endl<<(var)<<std::endl}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment