| 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 | { |
no test coverage detected