mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
9b5aded627
commit
c3a9c60b14
1 changed files with 2 additions and 2 deletions
|
@ -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_ */
|
||||
|
|
Loading…
Reference in a new issue