darling-cocotron/objc/message.h
2015-05-23 20:15:45 -04:00

20 lines
606 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 op, ...);
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);