Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
pwielders authored Feb 26, 2024
2 parents 7cdb14f + 4fab2f2 commit 130e767
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Source/core/Library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,17 @@ namespace Core {
_refCountedHandle = new RefCountedHandle;
_refCountedHandle->_referenceCount = 1;
_refCountedHandle->_handle = handle;
_refCountedHandle->_name = fileName;
TRACE_L1("Loaded library: %s", fileName);
if(fileName != nullptr) {
_refCountedHandle->_name = fileName;
TRACE_L1("Loaded library: %s", fileName);
}
else {
TRACE_L1("Loaded library with global symbols of the program");
}
} else {
#ifdef __LINUX__
_error = dlerror();
TRACE_L1("Failed to load library: %s, error %s", fileName, _error.c_str());
TRACE_L1("Failed to load library: %s, error %s", (fileName != nullptr ? fileName : "Global Symbols"), _error.c_str());
#endif
}
}
Expand Down

0 comments on commit 130e767

Please sign in to comment.