mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Fix invocation breakage.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30606 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
04f3016872
commit
122c4b087a
3 changed files with 15 additions and 12 deletions
|
@ -518,7 +518,9 @@ class_replaceMethod(Class cls, SEL name, IMP imp, const char *types)
|
|||
BOOL
|
||||
class_respondsToSelector(Class cls, SEL sel)
|
||||
{
|
||||
return __objc_responds_to((id) & cls, sel);
|
||||
if (cls != 0 && sel != 0 && __objc_responds_to((id) & cls, sel) != 0)
|
||||
return YES;
|
||||
return NO;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue