Replace assert with NSAssert

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3248 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1998-11-19 21:26:27 +00:00
parent 5a2bd37c96
commit a3751eb7bf
31 changed files with 182 additions and 199 deletions

View file

@ -164,8 +164,9 @@
- (unichar) characterAtIndex: (unsigned int)index
{
/* xxx raise NSException instead of assert. */
assert(index < [self length]);
if (index >= [self length])
[NSException raise: NSRangeException
format: @"index greater than sequence length"];
return _contents_chars[index];
}