Differences From Artifact [644970666b]:
- File
src/OFInvocation.h
— part of check-in
[d6553b4578]
at
2017-09-10 22:32:56
on branch trunk
— Add OFInvocation
Only support for storing an invocation, no support for invoking yet. (user: js, size: 2502) [annotate] [blame] [check-ins using]
To Artifact [c3fa8975c2]:
- File
src/OFInvocation.h
— part of check-in
[95797a4d1c]
at
2017-09-11 02:05:07
on branch trunk
— OFInvocation: Initial support for invoking
So far this is only for x86_64 with the Apple runtime and does not yet
support all types. It also does not yet support passing arguments via
the stack. (user: js, size: 2689) [annotate] [blame] [check-ins using]
︙ | |||
13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | + + + + + + | * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFObject.h" OF_ASSUME_NONNULL_BEGIN #ifdef OF_APPLE_RUNTIME # ifdef OF_X86_64 # define OF_INVOCATION_CAN_INVOKE # endif #endif @class OFMethodSignature; @class OFMutableArray OF_GENERIC(ObjectType); @class OFMutableData; /*! * @class OFInvocation OFInvocation.h ObjFW/OFInvocation.h |
︙ | |||
83 84 85 86 87 88 89 90 91 92 | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | + + + + + + + | /*! * @brief Gets the return value. * * @param buffer The buffer in which the return value is stored */ - (void)getReturnValue: (void *)buffer; #ifdef OF_INVOCATION_CAN_INVOKE /*! * @brief Invokes the method. */ - (void)invoke; #endif @end OF_ASSUME_NONNULL_END |