]> 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:41 +0000 (17:17 +0200)
codegen/valagerrormodule.vala

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