summaryrefslogtreecommitdiff
path: root/macosx/main.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/main.m')
-rwxr-xr-xmacosx/main.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/macosx/main.m b/macosx/main.m
index 5dd3410c..2b73320e 100755
--- a/macosx/main.m
+++ b/macosx/main.m
@@ -143,7 +143,15 @@ void *SysLoadSym(void *lib, const char *sym) {
}
const char *SysLibError() {
+#ifdef DEBUG
+ const char *theErr = dlerror();
+ if (theErr) {
+ NSLog(@"Error loading binary: %s", theErr);
+ }
+ return theErr;
+#else
return dlerror();
+#endif
}
void SysCloseLibrary(void *lib) {