aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/JavaEmitter.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-07-02 14:26:04 +0200
committerSven Gothel <[email protected]>2023-07-02 14:26:04 +0200
commit6d53b4b1dd07006e7af0e540b2c2e6ee6e1746d5 (patch)
tree74a17394d340da857266f51ddfa5fe44724242f5 /src/java/com/jogamp/gluegen/JavaEmitter.java
parent9b9aa128d92e9512cb00559e99dce9c8de726ed7 (diff)
GlueGen JavaCallback: Unify native 'T_JavaCallbackGlueData' typedef structcallback_jniuserparamproxy
Diffstat (limited to 'src/java/com/jogamp/gluegen/JavaEmitter.java')
-rw-r--r--src/java/com/jogamp/gluegen/JavaEmitter.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/com/jogamp/gluegen/JavaEmitter.java b/src/java/com/jogamp/gluegen/JavaEmitter.java
index 64aaa8a..2ea8d30 100644
--- a/src/java/com/jogamp/gluegen/JavaEmitter.java
+++ b/src/java/com/jogamp/gluegen/JavaEmitter.java
@@ -3019,6 +3019,9 @@ public class JavaEmitter implements GlueEmitter {
LOG.log(WARNING, "JavaCallback used, but no 'LibraryOnLoad' basename specified for JNI_OnLoad(..). Exactly one native code-unit for the library must specify 'LibraryOnLoad' basename");
}
cUnit().emitHeader(cfg.libraryOnLoadName(), getImplPackageName(), cfg.implClassName(), cfg.customCCode());
+ if( cfg.getJavaCallbackList().size() > 0 ) {
+ cUnit().emitJavaCallbackGlueDataDecl();
+ }
}
} catch (final Exception e) {
throw new RuntimeException(