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

Function InitWithError

tests/cpp/test_init_once.cc:52–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52static int InitWithError(void** handle_addr) {
53 TVMFFIErrorSetRaisedFromCStr("RuntimeError", "Initialization failed");
54 return -1;
55}
56
57static int InitReturnsNull(void** handle_addr) {
58 *handle_addr = nullptr; // Invalid: must return non-null handle

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected