Slight debug improvement

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4502 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-07-01 12:48:44 +00:00
parent 8da6c792ff
commit 1efc49e29a
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Thu Jul 1 14:00:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
Patch by Kai Henningsen to improve debug slightly.
* Source/NSObject.m: improved exception messages.
Wed Jun 30 22:30:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk> Wed Jun 30 22:30:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSArray.m: Tidied for garbage collection. * Source/NSArray.m: Tidied for garbage collection.

View file

@ -530,7 +530,7 @@ static BOOL double_release_check_enabled = NO;
- free - free
{ {
[NSException raise: NSGenericException [NSException raise: NSGenericException
format: @"Use `dealloc' instead of `free'."]; format: @"Use `dealloc' instead of `free' for %@.", self];
return nil; return nil;
} }
@ -1078,7 +1078,7 @@ static BOOL double_release_check_enabled = NO;
{ {
[NSException [NSException
raise: NSGenericException raise: NSGenericException
format: @"method %s not implemented", sel_get_name(aSel)]; format: @"method %s not implemented in %s", sel_get_name(aSel), object_get_class_name(self)];
return nil; return nil;
} }
@ -1189,7 +1189,7 @@ static BOOL double_release_check_enabled = NO;
{ {
[NSException [NSException
raise: NSGenericException raise: NSGenericException
format: @"subclass should override %s", sel_get_name(aSel)]; format: @"subclass %s should override %s", object_get_class_name(self), sel_get_name(aSel)];
return nil; return nil;
} }