Fix GNUstep.h in ObjC++11 mode.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36600 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2013-05-08 09:50:52 +00:00
parent 9b5aded627
commit c3a9c60b14

View file

@ -344,7 +344,7 @@ id __object = (object); (__object != nil) ? [__object autorelease] : nil; })
if (RANGE.location > (NSUInteger)SIZE \
|| RANGE.length > ((NSUInteger)SIZE - RANGE.location)) \
[NSException raise: NSRangeException format: @"in %s, range { %"\
PRIuPTR", %"PRIuPTR" } extends beyond size (%"PRIuPTR")", \
PRIuPTR ", %" PRIuPTR " } extends beyond size (%" PRIuPTR ")", \
GSNameFromSelector(_cmd), RANGE.location, RANGE.length, (NSUInteger)SIZE]
/** Checks whether INDEX is strictly less than OVER (within C array space).
@ -353,7 +353,7 @@ id __object = (object); (__object != nil) ? [__object autorelease] : nil; })
#define CHECK_INDEX_RANGE_ERROR(INDEX, OVER) \
if ((NSUInteger)INDEX >= (NSUInteger)OVER) \
[NSException raise: NSRangeException \
format: @"in %s, index %"PRIuPTR" is out of range", \
format: @"in %s, index %" PRIuPTR " is out of range", \
GSNameFromSelector(_cmd), (NSUInteger)INDEX]
#endif /* __GNUSTEP_GNUSTEP_H_INCLUDED_ */