aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgbgen/go_single_field.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/xgbgen/go_single_field.go')
-rw-r--r--nexgb/xgbgen/go_single_field.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/nexgb/xgbgen/go_single_field.go b/nexgb/xgbgen/go_single_field.go
index 6c7218e..ecb9c6e 100644
--- a/nexgb/xgbgen/go_single_field.go
+++ b/nexgb/xgbgen/go_single_field.go
@@ -6,6 +6,9 @@ import (
)
func (f *SingleField) Define(c *Context) {
+ if f.Comment != "" {
+ c.PutComment(f.Comment)
+ }
c.Putln("%s %s", f.SrcName(), f.Type.SrcName())
}