@@ -19,10 +19,14 @@ #import "OFInvocation.h" #import "OFArray.h" #import "OFData.h" #import "OFMethodSignature.h" + +#ifdef OF_INVOCATION_CAN_INVOKE +extern void OFInvocationInvoke(OFInvocation *); +#endif @implementation OFInvocation @synthesize methodSignature = _methodSignature; + (instancetype)invocationWithMethodSignature: (OFMethodSignature *)signature @@ -103,6 +107,13 @@ - (void)getReturnValue: (void *)buffer { memcpy(buffer, _returnValue.items, _returnValue.itemSize); } + +#ifdef OF_INVOCATION_CAN_INVOKE +- (void)invoke +{ + OFInvocationInvoke(self); +} +#endif @end