MCPcopy Create free account
hub / github.com/PDAL/PDAL / getSymbol

Method getSymbol

pdal/DynamicLibrary.cpp:122–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121
122void *DynamicLibrary::getSymbol(const std::string& symbol)
123{
124 if (!m_handle)
125 return NULL;
126
127 void *sym;
128#ifdef _WIN32
129 sym = (void*)::GetProcAddress((HMODULE)m_handle, symbol.c_str());
130#else // Unix
131 sym = ::dlsym(m_handle, symbol.c_str());
132#endif
133 return sym;
134}
135
136} // namespace pdal
137

Callers 1

loadByPathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected