Function tvm_sys::ffi::TVMCFuncSetReturn[][src]

pub unsafe extern "C" fn TVMCFuncSetReturn(
    ret: TVMRetValueHandle,
    value: *mut TVMValue,
    type_code: *mut c_int,
    num_ret: c_int
) -> c_int
Expand description

\brief Set the return value of TVMPackedCFunc.

This function is called by TVMPackedCFunc to set the return value. When this function is not called, the function returns null by default.

\param ret The return value handle, pass by ret in TVMPackedCFunc \param value The value to be returned. \param type_code The type of the value to be returned. \param num_ret Number of return values, for now only 1 is supported.