Created
September 5, 2012 03:12
-
-
Save vinjn/3629716 to your computer and use it in GitHub Desktop.
Macro for run once
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
#define BLOCK_RUNONCE_START {\ | |
static bool runonce_first = true;\ | |
if (runonce_first)\ | |
{\ | |
runonce_first = false; | |
#define BLOCK_RUNONCE_END }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment