| 439 | |
| 440 | namespace dll { |
| 441 | void *open(std::string_view path) |
| 442 | { |
| 443 | ::dlerror(); |
| 444 | void *sym = ::dlopen(path.data(), COVLIBDLL_DLOPEN_ARGUMENTS); |
| 445 | const char *err = ::dlerror(); |
| 446 | if (err != nullptr) |
| 447 | throw cs::runtime_error(err); |
| 448 | return sym; |
| 449 | } |
| 450 | |
| 451 | void *find_symbol(void *handle, std::string_view symbol) |
| 452 | { |
no test coverage detected