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

Function InitSuccess

tests/cpp/test_init_once.cc:32–35  ·  view source on GitHub ↗

Helper functions for TVMFFIHandleInitDeinitOnce test

Source from the content-addressed store, hash-verified

30
31// Helper functions for TVMFFIHandleInitDeinitOnce test
32static int InitSuccess(void** handle_addr) {
33 *handle_addr = new int(42);
34 return 0;
35}
36
37static int InitShouldNotBeCalled(void** handle_addr) {
38 *handle_addr = new int(999);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected