mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
dlopen: Added dlerror info if dlopen fails to open.
This commit is contained in:
@@ -185,7 +185,9 @@ namespace bx
|
||||
BX_UNUSED(_filePath);
|
||||
return NULL;
|
||||
#else
|
||||
return ::dlopen(_filePath.getCPtr(), RTLD_LOCAL|RTLD_LAZY);
|
||||
void* so = ::dlopen(_filePath.getCPtr(), RTLD_LOCAL|RTLD_LAZY);
|
||||
BX_WARN(NULL != so, "dlopen failed: \"%s\".", ::dlerror() );
|
||||
return so;
|
||||
#endif // BX_PLATFORM_
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user