mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-10-07 17:43:28 +00:00
dc874b83b2
- 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().
21 lines
618 B
Objective-C
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);
|