Use NS_BLOCK_ASSERTIONS

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3245 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-11-19 17:07:37 +00:00
parent 67c950c908
commit 865f17d34a

View file

@ -143,7 +143,11 @@ extern void _NSRemoveHandler( NSHandler *handler );
@end
#define _NSAssertArgs(condition, desc, args...) \
#ifdef NS_BLOCK_ASSERTIONS
#define _NSAssertArgs(condition, desc, args...)
#define _NSCAssertArgs(condition, desc, args...)
#else
#define _NSAssertArgs(condition, desc, args...) \
do { \
if (!(condition)) { \
[[NSAssertionHandler currentHandler] \
@ -165,7 +169,7 @@ extern void _NSRemoveHandler( NSHandler *handler );
description:(desc) , ## args]; \
} \
} while(0)
#endif
/* Asserts to use in Objective-C method bodies*/
#define NSAssert5(condition, desc, arg1, arg2, arg3, arg4, arg5) \