mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
67c950c908
commit
865f17d34a
1 changed files with 6 additions and 2 deletions
|
@ -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) \
|
||||
|
|
Loading…
Reference in a new issue