diff options
author | Sven Gothel <[email protected]> | 2023-06-29 03:05:00 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-06-29 03:05:00 +0200 |
commit | 1d66739e09899cb90888c8fe34aba339511aa656 (patch) | |
tree | 4b4a98346f7a1598e16077052c5a9fd1582d5f03 | |
parent | a83dad9963b394ac3e7bb193c6da7d9a5004a40e (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.java | 2 |
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(); |