| 141 | } |
| 142 | |
| 143 | void ModuleLoader::DestroyModule(const aimrt_module_base_t* module_ptr) { |
| 144 | if (module_ptr == nullptr) { |
| 145 | AIMRT_WARN("Destroy a null pointer!"); |
| 146 | return; |
| 147 | } |
| 148 | |
| 149 | if (destroy_func_ == nullptr) { |
| 150 | AIMRT_WARN("Destroy func is null!"); |
| 151 | return; |
| 152 | } |
| 153 | |
| 154 | ((DynlibDestroyModuleFunc)destroy_func_)(module_ptr); |
| 155 | } |
| 156 | |
| 157 | } // namespace aimrt::runtime::core::module |
nothing calls this directly
no outgoing calls
no test coverage detected