Overview
Comment: | runtime/lookup.m: Minor improvement |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
71517b2e5df744e4f1ee8b73cc62f5fd |
User & Date: | js on 2014-07-18 13:02:28 |
Other Links: | manifest | tags |
Context
2014-07-18
| ||
19:38 | OFFile: Small documentation improvement check-in: d20e7cbea0 user: js tags: trunk | |
13:02 | runtime/lookup.m: Minor improvement check-in: 71517b2e5d user: js tags: trunk | |
11:00 | PLATFORMS.md: Add bare metal ARM Cortex-M4 check-in: 7d763c59aa user: js tags: trunk | |
Changes
Modified src/runtime/lookup.m from [02a0538d70] to [c395e5b4c4].
︙ | ︙ | |||
46 47 48 49 50 51 52 | bool is_class = object_getClass(obj)->info & OBJC_CLASS_INFO_METACLASS; if (!(object_getClass(obj)->info & OBJC_CLASS_INFO_INITIALIZED)) { Class cls = (is_class ? (Class)obj : object_getClass(obj)); objc_initialize_class(cls); | | < < < | | < | | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | bool is_class = object_getClass(obj)->info & OBJC_CLASS_INFO_METACLASS; if (!(object_getClass(obj)->info & OBJC_CLASS_INFO_INITIALIZED)) { Class cls = (is_class ? (Class)obj : object_getClass(obj)); objc_initialize_class(cls); if (!(cls->info & OBJC_CLASS_INFO_SETUP)) OBJC_ERROR("Could not dispatch message for incomplete " "class %s!", cls->name); /* * We don't need to handle the case that super was called. * The reason for this is that a call to super is not possible * before a message to the class has been sent and it thus has * been initialized together with its superclasses. */ return lookup(obj, sel); } /* Try resolveClassMethod: / resolveInstanceMethod: */ if (class_isMetaClass(object_getClass(obj))) { Class cls = object_getClass(obj); if (class_respondsToSelector(cls, @selector(resolveClassMethod:)) && [obj resolveClassMethod: sel]) { if (!class_respondsToSelector(cls, sel)) |
︙ | ︙ |