]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Append errordomain doc comments to generated C files
authorJürg Billeter <j@bitron.ch>
Thu, 30 Sep 2010 15:04:50 +0000 (17:04 +0200)
committerJürg Billeter <j@bitron.ch>
Thu, 30 Sep 2010 15:17:16 +0000 (17:17 +0200)
codegen/valagerrormodule.vala

index ae406e13fc60a33d0aefd97d08eaf09c772c7905..b08b825c2c7f9293d851d20adc7960a849831f56 100644 (file)
@@ -57,6 +57,10 @@ public class Vala.GErrorModule : CCodeDelegateModule {
        }
 
        public override void visit_error_domain (ErrorDomain edomain) {
+               if (edomain.comment != null) {
+                       cfile.add_type_definition (new CCodeComment (edomain.comment.content));
+               }
+
                generate_error_domain_declaration (edomain, cfile);
 
                if (!edomain.is_internal_symbol ()) {