Created
March 15, 2018 04:09
-
-
Save jonluca/522bf38a223b1e778fff15f2d4e7806e to your computer and use it in GitHub Desktop.
Testing Zero
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int mVar = 0; | |
void setVarToOne(int* mVar){ | |
if(mVar) *mVar = 1; | |
} | |
setVarToOne(nullptr); | |
ASSERTEQ(mVar,0); //true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment