[vala] Append errordomain doc comments to generated C files



commit c3d32b727d9ff9365e10292ccb595562bcde533c
Author: Jürg Billeter <j bitron ch>
Date:   Thu Sep 30 17:04:50 2010 +0200

    Append errordomain doc comments to generated C files

 codegen/valagerrormodule.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagerrormodule.vala b/codegen/valagerrormodule.vala
index ae406e1..b08b825 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 ()) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]