| 37 | return nullptr; |
| 38 | } |
| 39 | |
| 40 | inline DynamicLibraryHandle open_dynamic_library(const std::string & name) { |
| 41 | #ifdef _WIN32 |
| 42 | return LoadLibraryA(name.c_str()); |
| 43 | #else |
| 44 | return dlopen(name.c_str(), RTLD_LAZY | RTLD_LOCAL); |
| 45 | #endif |
| 46 | } |
| 47 | |
| 48 | inline void close_dynamic_library(DynamicLibraryHandle handle) { |
| 49 | if (handle == nullptr) { |
| 50 | return; |
| 51 | } |
no outgoing calls
no test coverage detected