aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/os/UnixDynamicLinkerImpl.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-06-18 01:41:30 +0200
committerSven Gothel <[email protected]>2013-06-18 01:41:30 +0200
commit4feb65517ae4a4e2b9b04cdfc4b85582cb8b9784 (patch)
treeb043abfa0ae00ed3915862730e35ef15c9f7f630 /src/java/jogamp/common/os/UnixDynamicLinkerImpl.java
parente18771cc020f6fd42f6427540c079e48699ab310 (diff)
Robostness: Catch Throwables on NativeLibrary.open(..) and be verbose in DEBUG mode ; DynamicLinker: Add 'String getLastError()'.
Diffstat (limited to 'src/java/jogamp/common/os/UnixDynamicLinkerImpl.java')
-rw-r--r--src/java/jogamp/common/os/UnixDynamicLinkerImpl.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java/jogamp/common/os/UnixDynamicLinkerImpl.java b/src/java/jogamp/common/os/UnixDynamicLinkerImpl.java
index e4cdbda..7675977 100644
--- a/src/java/jogamp/common/os/UnixDynamicLinkerImpl.java
+++ b/src/java/jogamp/common/os/UnixDynamicLinkerImpl.java
@@ -71,5 +71,8 @@ public class UnixDynamicLinkerImpl implements DynamicLinker {
public void closeLibrary(long libraryHandle) {
dlclose(libraryHandle);
}
-
+
+ public String getLastError() {
+ return dlerror();
+ }
}