| 25 | } |
| 26 | |
| 27 | DynamicLibrary::DynamicLibrary(const std::string& filename) : |
| 28 | _name(filename.begin(), filename.end()), |
| 29 | _library(LoadLibrary(_name.c_str())) |
| 30 | { |
| 31 | if (_library == 0) |
| 32 | { |
| 33 | rError() << "LoadLibrary failed: '" << filename << "'" << std::endl; |
| 34 | rError() << "GetLastError: " << FormatGetLastError(); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | DynamicLibrary::~DynamicLibrary() { |
| 39 | if (!failed()) { |
nothing calls this directly
no test coverage detected