MCPcopy Create free account
hub / github.com/OpenAssetIO/OpenAssetIO / dlopen

Function dlopen

src/openassetio-core/src/pluginSystem/CppPluginSystem.cpp:53–53  ·  view source on GitHub ↗

* Implement POSIX dlopen for Windows. * * For unicode support, using wchar_t / LoadLibraryW. Handily, on * Windows std::filesystem::path::c_str returns a wchar_t*, so the * divergence between POSIX/Windows dlopen and path::c_str marries up * appropriately for the platform. * * Note that the second parameter, the RTLD_ mode, is ignored. Windows * approximates RTLD_LOCAL. */

Source from the content-addressed store, hash-verified

51 * approximates RTLD_LOCAL.
52 */
53void* dlopen(const wchar_t* filename, [[maybe_unused]] int mode) { return LoadLibraryW(filename); }
54
55/**
56 * Implement POSIX dlclose for Windows.

Callers 1

maybeLoadPluginMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected