MCPcopy Create free account
hub / github.com/apache/tvm-ffi / DeinitWithError

Function DeinitWithError

tests/cpp/extra/test_c_env_api.cc:144–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144static int DeinitWithError(void* h) {
145 delete static_cast<int*>(h);
146 TVMFFIErrorSetRaisedFromCStr("RuntimeError", "Deinitialization failed");
147 return -1;
148}
149
150static int InitValue123(void** handle_addr) {
151 *handle_addr = new int(123);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected