Define TVM_FFI_UNSAFE_S_MUTATE_ASSIGN_OR_RETURN#
Defined in File structural_mutate.h
Define Documentation#
-
TVM_FFI_UNSAFE_S_MUTATE_ASSIGN_OR_RETURN(Type, Name, ResultExpr)#
Unwrap a successful mutation result when the caller guarantees it to be
Type.The caller must guarantee the successful result has the declared type. No runtime type check is performed, including in debug builds; violating this contract is undefined behavior.
See also
- Parameters:
Type – The guaranteed concrete type of the successful value.
Name – The name of the value declared in the enclosing scope.
ResultExpr – An expression producing the
Expectedvalue to unwrap.