summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/jogamp/gluegen')
-rw-r--r--src/java/com/jogamp/gluegen/GlueGen.java11
-rw-r--r--src/java/com/jogamp/gluegen/JavaEmitter.java2
2 files changed, 9 insertions, 4 deletions
diff --git a/src/java/com/jogamp/gluegen/GlueGen.java b/src/java/com/jogamp/gluegen/GlueGen.java
index 5aa76f8..5d656a4 100644
--- a/src/java/com/jogamp/gluegen/GlueGen.java
+++ b/src/java/com/jogamp/gluegen/GlueGen.java
@@ -290,14 +290,19 @@ public class GlueGen implements GlueEmitterControls {
}
comment.append("</code>");
}
+ if (comment.length() > 0) {
+ comment.append("<br>\n");
+ }
if (def.getEnumName() != null) {
- if (comment.length() > 0)
- comment.append("<br>\n");
-
comment.append("Defined as part of enum type \"");
comment.append(def.getEnumName());
comment.append("\"");
+ } else {
+ comment.append("Define \"");
+ comment.append(def.getName());
+ comment.append("\"");
}
+ comment.append(" from expression '<code>"+def.getNativeExpr()+"</code>'");
if (comment.length() > 0) {
emit.emitDefine(def, comment.toString());
comment.setLength(0);
diff --git a/src/java/com/jogamp/gluegen/JavaEmitter.java b/src/java/com/jogamp/gluegen/JavaEmitter.java
index 9d0edef..0d26071 100644
--- a/src/java/com/jogamp/gluegen/JavaEmitter.java
+++ b/src/java/com/jogamp/gluegen/JavaEmitter.java
@@ -339,7 +339,7 @@ public class JavaEmitter implements GlueEmitter {
javaUnit().emit(" /** ");
if (optionalComment != null && optionalComment.length() != 0) {
javaUnit().emit(optionalComment);
- javaUnit().emit(" - ");
+ javaUnit().emit(", ");
}
javaUnit().emit("CType: ");
if( constExpr.resultType.isUnsigned ) {