Created
September 1, 2011 23:57
-
-
Save amattn/1187616 to your computer and use it in GitHub Desktop.
Objective C Macro of the week: ASSERT_IS_CLASS
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_IS_CLASS(x, class) NSAssert5([x isKindOfClass:class], @"\n\n **** Unexpected Assertion **** \nReason: Expected class:%@ but got:%@\nAssertion in file:%s at line %i in Method %@", NSStringFromClass(class), x, __FILE__, __LINE__, NSStringFromSelector(_cmd)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment