Define TVM_FFI_SAFE_CALL_BEGIN

Define TVM_FFI_SAFE_CALL_BEGIN#

Define Documentation#

TVM_FFI_SAFE_CALL_BEGIN()#

Marks the beginning of the safe call that catches exception explicitly.

Helper macro to construct a safe call

int TVMFFICStyleFunction() {
  TVM_FFI_SAFE_CALL_BEGIN();
  // c++ code region here
  TVM_FFI_SAFE_CALL_END();
}