| 24 | extern "C" { |
| 25 | |
| 26 | error_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 | |
| 32 | error_t module_destruct(Module* module) { |
| 33 | delete static_cast<ModuleInternal*>(module->internal); |
no outgoing calls
no test coverage detected