MCPcopy Create free account
hub / github.com/crownengine/crown / dlopen

Function dlopen

3rdparty/bx/src/os.cpp:154–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 }
153
154 void* dlopen(const FilePath& _filePath)
155 {
156#if BX_PLATFORM_WINDOWS
157 return (void*)::LoadLibraryA(_filePath.getCPtr() );
158#elif BX_PLATFORM_EMSCRIPTEN \
159 || BX_PLATFORM_PS4 \
160 || BX_PLATFORM_XBOXONE \
161 || BX_PLATFORM_WINRT \
162 || BX_PLATFORM_NX \
163 || BX_CRT_NONE
164 BX_UNUSED(_filePath);
165 return NULL;
166#else
167 void* so = ::dlopen(_filePath.getCPtr(), RTLD_LOCAL|RTLD_LAZY);
168 BX_WARN(NULL != so, "dlopen failed: \"%s\".", ::dlerror() );
169 return so;
170#endif // BX_PLATFORM_
171 }
172
173 void dlclose(void* _handle)
174 {

Callers 15

clib_loadlibFunction · 0.85
ll_loadFunction · 0.85
loadFunction · 0.85
initMethod · 0.85
loadAftermathMethod · 0.85
findModuleFunction · 0.85
createMethod · 0.85
initMethod · 0.85
createSurfaceMethod · 0.85
loadRenderDocFunction · 0.85
eglOpenFunction · 0.85
waylandEglOpenFunction · 0.85

Calls 1

getCPtrMethod · 0.80

Tested by

no test coverage detected