Type Definition tvm::runtime::function::ffi::TVMPackedCFunc [−][src]
pub type TVMPackedCFunc = Option<unsafe extern "C" fn(*mut TVMValue, *mut i32, i32, *mut c_void, *mut c_void) -> i32>;
Expand description
\brief C type of packed function.
\param args The arguments \param type_codes The type codes of the arguments \param num_args Number of arguments. \param ret The return value handle. \param resource_handle The handle additional resouce handle from fron-end. \return 0 if success, -1 if failure happens, set error via TVMAPISetLastError. \sa TVMCFuncSetReturn