aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/procaddress/ProcAddressJavaMethodBindingEmitter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/jogamp/gluegen/procaddress/ProcAddressJavaMethodBindingEmitter.java')
-rw-r--r--src/java/com/jogamp/gluegen/procaddress/ProcAddressJavaMethodBindingEmitter.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/java/com/jogamp/gluegen/procaddress/ProcAddressJavaMethodBindingEmitter.java b/src/java/com/jogamp/gluegen/procaddress/ProcAddressJavaMethodBindingEmitter.java
index 0d5de1c..b6ed21b 100644
--- a/src/java/com/jogamp/gluegen/procaddress/ProcAddressJavaMethodBindingEmitter.java
+++ b/src/java/com/jogamp/gluegen/procaddress/ProcAddressJavaMethodBindingEmitter.java
@@ -91,19 +91,18 @@ public class ProcAddressJavaMethodBindingEmitter extends JavaMethodBindingEmitte
}
@Override
- protected int emitArguments() {
- int numEmitted = super.emitArguments();
+ protected int appendArguments(final StringBuilder buf) {
+ int numEmitted = super.appendArguments(buf);
if (callThroughProcAddress) {
if (changeNameAndArguments) {
if (numEmitted > 0) {
- unit.emit(", ");
+ buf.append(", ");
}
- unit.emit("long procAddress");
+ buf.append("long procAddress");
++numEmitted;
}
}
-
return numEmitted;
}