Created
March 6, 2011 19:47
-
-
Save amattn/857584 to your computer and use it in GitHub Desktop.
Objective C Macro of the week: ASSERT_NIL // used to guarantee that a given object is nil.
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 ASSERT_NIL(x) NSAssert4((x == nil), @"\n\n **** Unexpected Nil Assertion ****\n **** Expected nil, but " #x @" is not nil.\nin file:%s at line %i in Method %@ with object:\n %@", __FILE__, __LINE__, NSStringFromSelector(_cmd), self) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment