General improvements in responsetoSelector and methodSig code

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9923 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2001-05-12 06:25:46 +00:00
parent ac7eae4414
commit 9609221f1b
3 changed files with 93 additions and 21 deletions

View file

@ -1101,14 +1101,7 @@ static BOOL deallocNotifications = NO;
- (BOOL) respondsToSelector: (SEL)aSelector
{
#if 0
if (GSObjCIsInstance(self))
return (class_get_instance_method(GSObjCClass(self), aSelector)!=METHOD_NULL);
else
return (class_get_class_method(GSObjCClass(self), aSelector)!=METHOD_NULL);
#else
return __objc_responds_to(self, aSelector);
#endif
}
- (id) retain