MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / driver_construct

Function driver_construct

TactilityKernel/source/driver.cpp:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33extern "C" {
34
35error_t driver_construct(Driver* driver) {
36 driver->internal = new(std::nothrow) DriverInternal;
37 if (driver->internal == nullptr) {
38 return ERROR_OUT_OF_MEMORY;
39 }
40 return ERROR_NONE;
41}
42
43error_t driver_destruct(Driver* driver) {
44 auto* internal = driver->internal;

Callers 2

DriverTest.cppFile · 0.85
driver_construct_addFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected