| 144 | } // namespace tvm |
| 145 | |
| 146 | int TVMFFIFunctionCreate(void* self, TVMFFISafeCallType safe_call, void (*deleter)(void* self), |
| 147 | TVMFFIObjectHandle* out) { |
| 148 | TVM_FFI_SAFE_CALL_BEGIN(); |
| 149 | tvm::ffi::Function func = tvm::ffi::Function::FromExternC(self, safe_call, deleter); |
| 150 | *out = tvm::ffi::details::ObjectUnsafe::MoveObjectRefToTVMFFIObjectPtr(std::move(func)); |
| 151 | TVM_FFI_SAFE_CALL_END(); |
| 152 | } |
| 153 | |
| 154 | int TVMFFIAnyViewToOwnedAny(const TVMFFIAny* any_view, TVMFFIAny* out) { |
| 155 | TVM_FFI_SAFE_CALL_BEGIN(); |
no outgoing calls
no test coverage detected