]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Support adding modules in derived code generators
authorLuca Bruno <lethalman88@gmail.com>
Thu, 25 Mar 2010 09:37:09 +0000 (10:37 +0100)
committerJürg Billeter <j@bitron.ch>
Thu, 25 Mar 2010 09:37:09 +0000 (10:37 +0100)
codegen/valaccodegenerator.vala

index e7472c263ae835fd5c4ca7bb91bafda2f95788a0..4853e70696813741de8e3f10dccc352e21fa1f79 100644 (file)
@@ -67,11 +67,16 @@ public class Vala.CCodeGenerator : CodeGenerator {
                        head = new CCodeDelegateModule (this, head);
                }
 
+               head = add_modules (head);
                head.emit (context);
 
                head = null;
        }
 
+       public virtual CCodeModule add_modules (CCodeModule head) {
+               return head;
+       }
+
        public override void visit_source_file (SourceFile source_file) {
                head.visit_source_file (source_file);
        }