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

Function InitSuccess

tests/cpp/extra/test_c_env_api.cc:109–112  ·  view source on GitHub ↗

Helper functions for TVMFFIHandleInitDeinitOnce test

Source from the content-addressed store, hash-verified

107
108// Helper functions for TVMFFIHandleInitDeinitOnce test
109static int InitSuccess(void** handle_addr) {
110 *handle_addr = new int(42);
111 return 0;
112}
113
114static int InitShouldNotBeCalled(void** handle_addr) {
115 *handle_addr = new int(999);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected