| 278 | } |
| 279 | |
| 280 | bool ModuleLoader::registerSymbol(NativeModule const &mod, |
| 281 | std::string const &encName, |
| 282 | void *pointer) |
| 283 | { |
| 284 | bool retVal = false; |
| 285 | do |
| 286 | { |
| 287 | std::string modName = {}; |
| 288 | std::string libName = {}; |
| 289 | uint64_t nid = 0; |
| 290 | |
| 291 | retVal = mod.getExportSymbolInfo(encName, &modName, &libName, &nid); |
| 292 | if (!retVal) |
| 293 | { |
| 294 | break; |
| 295 | } |
| 296 | |
| 297 | retVal = m_modSystem.registerNativeSymbol(modName, libName, nid, pointer); |
| 298 | if (!retVal) |
| 299 | { |
| 300 | break; |
| 301 | } |
| 302 | |
| 303 | retVal = true; |
| 304 | } while (false); |
| 305 | |
| 306 | return retVal; |
| 307 | } |
| 308 | |
| 309 | bool ModuleLoader::registerSymbol(NativeModule const &mod, size_t idx) |
| 310 | { |
nothing calls this directly
no test coverage detected