Skip to content

Instantly share code, notes, and snippets.

@sbrocket
Created June 9, 2011 16:50
Show Gist options
  • Select an option

  • Save sbrocket/1017165 to your computer and use it in GitHub Desktop.

Select an option

Save sbrocket/1017165 to your computer and use it in GitHub Desktop.
// 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