BundleUtilities: Print reason for not loading module.so
This commit is contained in:
parent
f3de459cec
commit
8064044c94
|
@ -16,14 +16,18 @@ int main(int, char**)
|
|||
|
||||
#if defined(WIN32)
|
||||
HANDLE lib = LoadLibraryA("module.dll");
|
||||
#else
|
||||
void* lib = dlopen("module.so", RTLD_LAZY);
|
||||
#endif
|
||||
|
||||
if(!lib)
|
||||
{
|
||||
printf("Failed to open module\n");
|
||||
}
|
||||
#else
|
||||
void* lib = dlopen("module.so", RTLD_LAZY);
|
||||
if(!lib)
|
||||
{
|
||||
printf("Failed to open module\n%s\n", dlerror());
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
return lib == 0 ? 1 : 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue