darling-cocotron/objc/message.h
Christopher Lloyd dc874b83b2 - changed OBJCInitializeLookupAndCacheUniqueIdForObject to return forwarding function and modified objc_msg_lookup/objc_msgSend appropriately. Added equivalent OBJCLookupAndCacheUniqueIdForSuper for the super msg send functions which returns the forwarding function.
- moved objc_msg_sendv implementations out of objc/ into NSObject/, renamed to msgSendv-<platform>
- removed unused OBJCMessageNil function
- objc/message.h cleanup
- class_getMethodImplementation(_stret) changed to cache results
- basic _NSGetExecutablePath implementations for getting the executable path and not relying on argv on any platform. This also removes the requirement for argc/argv for OBJCInitializeProcess().
2009-04-24 21:29:33 +00:00

21 lines
618 B
Objective-C

#import <objc/runtime.h>
struct objc_super {
id receiver;
Class super_class;
};
OBJC_EXPORT id objc_msgSend(id self,SEL selector,...);
OBJC_EXPORT id objc_msgSendSuper(struct objc_super *super,SEL selector,...);
OBJC_EXPORT void objc_msgSend_stret(id self, SEL selector, ...);
OBJC_EXPORT void objc_msgSendSuper_stret(struct objc_super *super,SEL selector,...);
OBJC_EXPORT double objc_msgSend_fpret(id self,SEL selector,...);
// FIXME. TO BE CLEANED UP.
OBJC_EXPORT IMP objc_msg_lookup(id self, SEL selector);
OBJC_EXPORT IMP objc_msg_lookup_super(struct objc_super *super, SEL selector);