Created
December 13, 2011 13:22
-
-
Save zakki/1472118 to your computer and use it in GitHub Desktop.
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
static int* hoge_impl() { | |
static int hoge = 0; | |
return &hoge; | |
} | |
int get_hoge() { | |
return *hoge_impl(); | |
} | |
void set_hoge(int i) { | |
*hoge_impl() = i; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment