| 148 | } |
| 149 | |
| 150 | void* resolve_func(void* handle, const std::string& func_name) override { |
| 151 | auto ret = dlsym(handle, func_name.c_str()); |
| 152 | mgb_throw_if( |
| 153 | !ret, SystemError, "failed to resolve %s: %s", func_name.c_str(), |
| 154 | dlerror()); |
| 155 | return ret; |
| 156 | } |
| 157 | |
| 158 | void unload_lib(void* handle) override { |
| 159 | if (handle) { |
no test coverage detected