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

Function dlsym

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

Source from the content-addressed store, hash-verified

192 }
193
194 void* dlsym(void* _handle, const StringView& _symbol)
195 {
196 const int32_t symbolMax = _symbol.getLength()+1;
197 char* symbol = (char*)BX_STACK_ALLOC(symbolMax);
198 strCopy(symbol, symbolMax, _symbol);
199
200#if BX_PLATFORM_WINDOWS
201 return (void*)::GetProcAddress( (HMODULE)_handle, symbol);
202#elif BX_PLATFORM_EMSCRIPTEN \
203 || BX_PLATFORM_PS4 \
204 || BX_PLATFORM_XBOXONE \
205 || BX_PLATFORM_WINRT \
206 || BX_PLATFORM_NX \
207 || BX_CRT_NONE
208 BX_UNUSED(_handle, symbol);
209 return NULL;
210#else
211 return ::dlsym(_handle, symbol);
212#endif // BX_PLATFORM_
213 }
214
215 bool getEnv(char* _out, uint32_t* _inOutSize, const StringView& _name)
216 {

Callers 15

clib_getsymFunction · 0.85
ll_symFunction · 0.85
ll_bcsymFunction · 0.85
loadFunction · 0.85
initMethod · 0.85
loadAftermathMethod · 0.85
windowsVersionIsFunction · 0.85
createMethod · 0.85
createSurfaceMethod · 0.85
loadRenderDocFunction · 0.85
initMethod · 0.85
initMethod · 0.85

Calls 1

strCopyFunction · 0.85

Tested by

no test coverage detected