diff options
Diffstat (limited to 'Objective-C/libobjcl.h')
-rw-r--r-- | Objective-C/libobjcl.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Objective-C/libobjcl.h b/Objective-C/libobjcl.h index cb47440..5ca49f4 100644 --- a/Objective-C/libobjcl.h +++ b/Objective-C/libobjcl.h @@ -3,6 +3,14 @@ #import "Foundation/Foundation.h" #include <objc/objc-api.h> +#ifdef USE_LIBFFI +#include <ffi.h> +#else +#include <vacall.h> +#include <avcall.h> +#endif + + typedef struct objcl_object { char* type; @@ -42,6 +50,16 @@ objcl_invoke_method (OBJCL_OBJ_DATA receiver, int argc, ...); +void +objcl_invoke_with_types (void *receiver, + SEL method_selector, + char *(types[]), + size_t arg_sizes[], + id *exception, + void *return_value, + int argc, + ...); + OBJCL_OBJ_DATA objcl_find_class (const char *class_name); |