mirror of
https://github.com/darlinghq/darling-libobjc2.git
synced 2025-02-20 00:30:34 +00:00
Ugh, made the same mistake I spent an entire lecture telling my students not to make. Feeling stupid.
This commit is contained in:
parent
4a3326f2fd
commit
2e3b19b735
@ -295,7 +295,7 @@ BOOL class_respondsToSelector(Class cls, SEL selector)
|
||||
|
||||
IMP class_getMethodImplementation(Class cls, SEL name)
|
||||
{
|
||||
if ((cls = Nil) || (name == NULL)) { return (IMP)0; }
|
||||
if ((Nil == cls) || (NULL == name)) { return (IMP)0; }
|
||||
Slot_t slot = objc_get_slot(cls, name);
|
||||
return NULL != slot ? slot->method : __objc_msg_forward2(nil, name);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user