MCPcopy Create free account
hub / github.com/apache/tvm-ffi / Function_Construct

Function Function_Construct

examples/abi_overview/example_code.c:212–219  ·  view source on GitHub ↗

[Function.Construct.begin]

Source from the content-addressed store, hash-verified

210
211// [Function.Construct.begin]
212TVMFFIObject* Function_Construct(void* self, TVMFFISafeCallType safe_call,
213 void (*deleter)(void* self)) {
214 int err_code;
215 TVMFFIObject* out = NULL;
216 err_code = TVMFFIFunctionCreate(self, safe_call, deleter, (void**)(&out));
217 assert(err_code == 0);
218 return out;
219}
220// [Function.Construct.end]
221
222// [Function.Call.begin]

Callers

nothing calls this directly

Calls 1

TVMFFIFunctionCreateFunction · 0.85

Tested by

no test coverage detected