Created
December 4, 2010 02:49
-
-
Save raws/727858 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
/* | |
* Asserts to use in Objective-C method bodies | |
*/ | |
#define NSAssert5(condition, desc, arg1, arg2, arg3, arg4, arg5) \ | |
_NSAssertBody((condition), (desc), (arg1), (arg2), (arg3), (arg4), (arg5)) | |
#define NSAssert4(condition, desc, arg1, arg2, arg3, arg4) \ | |
_NSAssertBody((condition), (desc), (arg1), (arg2), (arg3), (arg4), 0) | |
#define NSAssert3(condition, desc, arg1, arg2, arg3) \ | |
_NSAssertBody((condition), (desc), (arg1), (arg2), (arg3), 0, 0) | |
#define NSAssert2(condition, desc, arg1, arg2) \ | |
_NSAssertBody((condition), (desc), (arg1), (arg2), 0, 0, 0) | |
#define NSAssert1(condition, desc, arg1) \ | |
_NSAssertBody((condition), (desc), (arg1), 0, 0, 0, 0) | |
#define NSAssert(condition, desc) \ | |
_NSAssertBody((condition), (desc), 0, 0, 0, 0, 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment