Function TVMFFIFunctionCall#
Defined in File c_api.h
Function Documentation#
-
int TVMFFIFunctionCall(TVMFFIObjectHandle func, TVMFFIAny *args, int32_t num_args, TVMFFIAny *result)#
Call a FFIFunc by passing in arguments.
- Parameters:
func – The resource handle of the C callback.
args – The input arguments to the call.
num_args – The number of input arguments.
result – The output result, caller must ensure result->type_index is set to kTVMFFINone.
- Returns:
0 on success, nonzero on failure.