diff options
Diffstat (limited to 'src/java/com/sun/gluegen/JavaMethodBindingEmitter.java')
-rw-r--r-- | src/java/com/sun/gluegen/JavaMethodBindingEmitter.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java b/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java index 4a0b201..b08d0e4 100644 --- a/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java +++ b/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java @@ -73,6 +73,7 @@ public class JavaMethodBindingEmitter extends FunctionEmitter protected boolean forDirectBufferImplementation; protected boolean forIndirectBufferAndArrayImplementation; protected boolean isUnimplemented; + protected boolean tagNativeBinding; protected MethodBinding binding; @@ -91,6 +92,7 @@ public class JavaMethodBindingEmitter extends FunctionEmitter PrintWriter output, String runtimeExceptionType, boolean emitBody, + boolean tagNativeBinding, boolean eraseBufferAndArrayTypes, boolean directNIOOnly, boolean forImplementingMethodCall, @@ -102,6 +104,7 @@ public class JavaMethodBindingEmitter extends FunctionEmitter this.binding = binding; this.runtimeExceptionType = runtimeExceptionType; this.emitBody = emitBody; + this.tagNativeBinding = tagNativeBinding; this.eraseBufferAndArrayTypes = eraseBufferAndArrayTypes; this.directNIOOnly = directNIOOnly; this.forImplementingMethodCall = forImplementingMethodCall; @@ -120,6 +123,7 @@ public class JavaMethodBindingEmitter extends FunctionEmitter binding = arg.binding; runtimeExceptionType = arg.runtimeExceptionType; emitBody = arg.emitBody; + tagNativeBinding = arg.tagNativeBinding; eraseBufferAndArrayTypes = arg.eraseBufferAndArrayTypes; directNIOOnly = arg.directNIOOnly; forImplementingMethodCall = arg.forImplementingMethodCall; @@ -702,7 +706,7 @@ public class JavaMethodBindingEmitter extends FunctionEmitter } protected void emitBindingCSignature(MethodBinding binding, PrintWriter writer) { writer.print("<code> "); - writer.print(binding.getCSymbol()); + writer.print(binding.getCSymbol().toString(tagNativeBinding)); writer.print(" </code> "); } protected void emitEnding(FunctionEmitter emitter, PrintWriter writer) { |