Created
June 9, 2011 16:50
-
-
Save sbrocket/1017165 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // This in the .pch file... | |
| #ifdef DEBUG | |
| #elseif | |
| #ifndef NS_BLOCK_ASSERTIONS | |
| #define NS_BLOCK_ASSERTIONS | |
| #endif | |
| #endif | |
| // ..causes this to generate a compiler error. | |
| // Use of undeclared identifier 'derp' | |
| #ifndef NS_BLOCK_ASSERTIONS | |
| BOOL derp = NO; | |
| #endif | |
| NSAssert(derp, @"Stupid thing"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment