(input: FunctionCallInput)
| 43 | } |
| 44 | |
| 45 | function toCallPointer(input: FunctionCallInput): NativePointer { |
| 46 | if (isCallableNativeFunction(input)) { |
| 47 | return input.address; |
| 48 | } |
| 49 | |
| 50 | return toPointer(input); |
| 51 | } |
| 52 | |
| 53 | function isCallableNativeFunction(value: FunctionCallInput): value is CallableNativeFunction { |
| 54 | return typeof value === "function" && "address" in value && value.address instanceof NativePointer; |
no test coverage detected