aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-06-29 03:05:00 +0200
committerSven Gothel <[email protected]>2023-06-29 03:05:00 +0200
commit1d66739e09899cb90888c8fe34aba339511aa656 (patch)
tree4b4a98346f7a1598e16077052c5a9fd1582d5f03
parenta83dad9963b394ac3e7bb193c6da7d9a5004a40e (diff)
GlueGen ProcAddressCMethodBindingEmitter.jniMangle() override: Only add additional params if produced name containes '__', i.e. JNI mangled parameter
-rw-r--r--src/java/com/jogamp/gluegen/procaddress/ProcAddressCMethodBindingEmitter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/jogamp/gluegen/procaddress/ProcAddressCMethodBindingEmitter.java b/src/java/com/jogamp/gluegen/procaddress/ProcAddressCMethodBindingEmitter.java
index bbeebfa..a280d6e 100644
--- a/src/java/com/jogamp/gluegen/procaddress/ProcAddressCMethodBindingEmitter.java
+++ b/src/java/com/jogamp/gluegen/procaddress/ProcAddressCMethodBindingEmitter.java
@@ -223,7 +223,7 @@ public class ProcAddressCMethodBindingEmitter extends CMethodBindingEmitter {
@Override
protected String jniMangle(final MethodBinding binding) {
final StringBuilder buf = new StringBuilder(super.jniMangle(binding));
- if (callThroughProcAddress) {
+ if (callThroughProcAddress && 0 <= buf.indexOf("__") ) {
getJNIMangledArg(Long.TYPE, buf, false); // to account for the additional _addr_ parameter
}
return buf.toString();