MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / open_dynamic_library

Function open_dynamic_library

include/engine/framework/io/dynamic_library.h:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23using DynamicLibraryHandle = void *;
24#endif
25
26inline DynamicLibraryHandle open_dynamic_library(std::initializer_list<const char *> names) {
27 for (const char * name : names) {
28#ifdef _WIN32
29 DynamicLibraryHandle handle = LoadLibraryA(name);
30#else
31 DynamicLibraryHandle handle = dlopen(name, RTLD_LAZY | RTLD_LOCAL);
32#endif
33 if (handle != nullptr) {
34 return handle;
35 }
36 }
37 return nullptr;
38}
39
40inline DynamicLibraryHandle open_dynamic_library(const std::string & name) {

Callers 2

SoxrApiMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected