summaryrefslogtreecommitdiffstats
path: root/src/net/java/games
diff options
context:
space:
mode:
authorTravis Bryson <[email protected]>2005-05-25 18:43:34 +0000
committerTravis Bryson <[email protected]>2005-05-25 18:43:34 +0000
commit033696c8184e1d1575fc3474b62631d08b761827 (patch)
tree794fe4d00d2448536bb0e014f593a358ba8d61f9 /src/net/java/games
parent48fda1ba14e025d9d6a984953219868c73318e5b (diff)
* Use cleaner and more OOP method to refer to Buffer types in gluegen's
CMethodBindingEmitter. Functionality is equivalent. This now matches how I had done this elsewhere in the gluegen code. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JSR-231@282 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games')
-rw-r--r--src/net/java/games/gluegen/CMethodBindingEmitter.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/net/java/games/gluegen/CMethodBindingEmitter.java b/src/net/java/games/gluegen/CMethodBindingEmitter.java
index ffe0ebbd3..9272b9669 100644
--- a/src/net/java/games/gluegen/CMethodBindingEmitter.java
+++ b/src/net/java/games/gluegen/CMethodBindingEmitter.java
@@ -1076,16 +1076,9 @@ public class CMethodBindingEmitter extends FunctionEmitter
jniMangle(c, buf);
// If Buffer offset arguments were added, we need to mangle the JNI for the
// extra arguments
- if(type == JavaType.forNIOBufferClass() ||
- type == JavaType.forNIOByteBufferClass() ||
- type == JavaType.forNIOShortBufferClass() ||
- type == JavaType.forNIOIntBufferClass() ||
- type == JavaType.forNIOLongBufferClass() ||
- type == JavaType.forNIOFloatBufferClass() ||
- type == JavaType.forNIODoubleBufferClass()) {
+ if(type.isNIOBuffer()) {
jniMangle(Integer.TYPE, buf);
- } else if (type.isNIOByteBufferArray() ||
- type.isNIOBufferArray()) {
+ } else if (type.isNIOBufferArray()) {
int[] intArrayType = new int[0];
c = intArrayType.getClass();
jniMangle(c , buf);