From: Jürg Billeter Date: Thu, 30 Sep 2010 15:04:50 +0000 (+0200) Subject: Append errordomain doc comments to generated C files X-Git-Tag: 0.11.0~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3d32b727d9ff9365e10292ccb595562bcde533c;p=thirdparty%2Fvala.git Append errordomain doc comments to generated C files --- diff --git a/codegen/valagerrormodule.vala b/codegen/valagerrormodule.vala index ae406e13f..b08b825c2 100644 --- a/codegen/valagerrormodule.vala +++ b/codegen/valagerrormodule.vala @@ -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 ()) {