aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/GlueGen.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/jogamp/gluegen/GlueGen.java')
-rw-r--r--src/java/com/jogamp/gluegen/GlueGen.java11
1 files changed, 8 insertions, 3 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);