MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / DynamicLibrary

Method DynamicLibrary

libs/module/DynamicLibrary.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27DynamicLibrary::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
38DynamicLibrary::~DynamicLibrary() {
39 if (!failed()) {

Callers

nothing calls this directly

Calls 6

rErrorFunction · 0.85
FormatGetLastErrorFunction · 0.85
rConsoleErrorFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected