Skip to content

Instantly share code, notes, and snippets.

@jonluca
Created March 15, 2018 04:10
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 jonluca/5c6d9aa75cf801bb25b3b6762c9d780f to your computer and use it in GitHub Desktop.
Save jonluca/5c6d9aa75cf801bb25b3b6762c9d780f to your computer and use it in GitHub Desktop.
Testing One
int mVar = 0;
void setVarToOne(int* mVar){
if(mVar) *mVar = 1;
}
setVarToOne(&mVar);
ASSERTEQ(mVar,1); //true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment