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

Function module_construct

TactilityKernel/source/module.cpp:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24extern "C" {
25
26error_t module_construct(Module* module) {
27 module->internal = new (std::nothrow) ModuleInternal();
28 if (module->internal == nullptr) return ERROR_OUT_OF_MEMORY;
29 return ERROR_NONE;
30}
31
32error_t module_destruct(Module* module) {
33 delete static_cast<ModuleInternal*>(module->internal);

Callers 3

ModuleTest.cppFile · 0.85
runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected