| 55 | namespace hipsycl::common { |
| 56 | |
| 57 | void close_library(void *handle, std::string &message) { |
| 58 | #ifndef _WIN32 |
| 59 | if (dlclose(handle)) { |
| 60 | message = "dlclose() failed"; |
| 61 | } |
| 62 | #else |
| 63 | if (!FreeLibrary(static_cast<HMODULE>(handle))) { |
| 64 | message = "FreeLibrary() failed"; |
| 65 | } |
| 66 | #endif |
| 67 | } |
| 68 | |
| 69 | void *load_library(const std::string &filename, std::string &message) { |
| 70 | #ifndef _WIN32 |
no outgoing calls
no test coverage detected