diff options
Diffstat (limited to 'src/java/com/jogamp/gluegen/JavaMethodBindingEmitter.java')
-rw-r--r-- | src/java/com/jogamp/gluegen/JavaMethodBindingEmitter.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/java/com/jogamp/gluegen/JavaMethodBindingEmitter.java b/src/java/com/jogamp/gluegen/JavaMethodBindingEmitter.java index e7903fe..74e18e5 100644 --- a/src/java/com/jogamp/gluegen/JavaMethodBindingEmitter.java +++ b/src/java/com/jogamp/gluegen/JavaMethodBindingEmitter.java @@ -410,6 +410,14 @@ public class JavaMethodBindingEmitter extends FunctionEmitter { unit.emit(", int " + offsetArgName(i)); } } + if( hasModifier(JavaMethodBindingEmitter.NATIVE) && + null != cfg.bindingToJavaCallbackMap.get(binding.getName()) ) { + if (needComma) { + unit.emit(", "); + } + unit.emit("String callbackSignature"); + ++numEmitted; + } return numEmitted; } @@ -725,6 +733,14 @@ public class JavaMethodBindingEmitter extends FunctionEmitter { needComma = true; ++numArgsEmitted; } + final JavaConfiguration.JavaCallback jcb = cfg.bindingToJavaCallbackMap.get(binding.getName()); + if( null != jcb ) { + if (needComma) { + unit.emit(", "); + } + unit.emit("\"" + jcb.methodSignature + "\""); + ++numArgsEmitted; + } return numArgsEmitted; } |