summaryrefslogtreecommitdiffstats
path: root/src/net/java/games/gluegen/opengl/JavaGLPAWrapperEmitter.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2003-07-15 06:35:12 +0000
committerKenneth Russel <[email protected]>2003-07-15 06:35:12 +0000
commit68e29a425b63f1eca8e6879ebfb3324929b3dc2a (patch)
treef7b2af1c4ff4dab8e4c72dba2fd72223323d0bb6 /src/net/java/games/gluegen/opengl/JavaGLPAWrapperEmitter.java
parent1ad0557911c2466a6943564528b31cc33f48851d (diff)
Fixed issue 13: Readable names for function arguments
Applied patches submitted by [email protected]. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@32 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/gluegen/opengl/JavaGLPAWrapperEmitter.java')
-rw-r--r--src/net/java/games/gluegen/opengl/JavaGLPAWrapperEmitter.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/java/games/gluegen/opengl/JavaGLPAWrapperEmitter.java b/src/net/java/games/gluegen/opengl/JavaGLPAWrapperEmitter.java
index c3b17f6cb..4fb50ea21 100644
--- a/src/net/java/games/gluegen/opengl/JavaGLPAWrapperEmitter.java
+++ b/src/net/java/games/gluegen/opengl/JavaGLPAWrapperEmitter.java
@@ -157,8 +157,8 @@ public class JavaGLPAWrapperEmitter extends JavaMethodBindingImplEmitter
String procAddressVariable =
GLEmitter.PROCADDRESS_VAR_PREFIX + wrappedBinding.getName();
- writer.println(" final long addr = " + getProcAddressTableExpr + "." + procAddressVariable + ";");
- writer.println(" if (addr == 0) {");
+ writer.println(" final long __addr_ = " + getProcAddressTableExpr + "." + procAddressVariable + ";");
+ writer.println(" if (__addr_ == 0) {");
writer.println(" throw new GLException(\"Method \\\"" + binding.getName() + "\\\" not available\");");
writer.println(" }");
}
@@ -168,7 +168,7 @@ public class JavaGLPAWrapperEmitter extends JavaMethodBindingImplEmitter
if (numEmitted > 0) {
writer.print(", ");
}
- writer.print("addr");
+ writer.print("__addr_");
return 1 + numEmitted;
}