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