[libr] Add __obj_responds_to proto and definition

This commit is contained in:
Bill Currie 2020-03-10 00:09:46 +09:00
parent 2a152e6356
commit 4978713dee
2 changed files with 3 additions and 1 deletions

View file

@ -38,7 +38,8 @@ typedef enum {
YES ///< a true value
} BOOL;
@extern void __obj_forward(id, SEL, ...);
@extern void __obj_forward(id obj, SEL sel, ...);
@extern BOOL __obj_responds_to(id obj, SEL sel);
@extern void obj_error (id object, int code, string fmt, ...);
@extern void obj_verror (id object, int code, string fmt, @va_list args);
//obj_error_handler obj_set_error_handler (objc_error_handler func);

View file

@ -9,6 +9,7 @@ static void link__obj_forward (void)
void *PR_FindGlobal (string name) = #0; //FIXME where?
void __obj_exec_class (struct obj_module *msg) = #0;
BOOL __obj_responds_to(id obj, SEL sel) = #0;
void (id object, int code, string fmt, ...) obj_error = #0;
void (id object, int code, string fmt, @va_list args) obj_verror = #0;
//obj_error_handler (objc_error_handler func) obj_set_error_handler = #0;