Last active
September 12, 2016 03:08
-
-
Save vinnybad/fcc6c56f44d2ef865b0b513e644bdd1f 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
/* | |
* Block Safety | |
* | |
* We sometimes accidentally invoke a nil block...this protects against it. | |
* | |
*/ | |
#define SAFE_CALL(b, ...) \ | |
if(b) b(__VA_ARGS__); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment