Define TVM_FFI_UNSAFE_S_MUTATE_ASSIGN_OR_RETURN

Define TVM_FFI_UNSAFE_S_MUTATE_ASSIGN_OR_RETURN#

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.

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 Expected value to unwrap.