}
}
- if (cl.source_reference.comment != null) {
- decl_space.add_type_definition (new CCodeComment (cl.source_reference.comment));
- }
- decl_space.add_type_definition (instance_struct);
-
- if (is_gtypeinstance) {
- decl_space.add_type_definition (type_struct);
- }
-
foreach (Method m in cl.get_methods ()) {
generate_virtual_method_declaration (m, decl_space, type_struct);
}
type_struct.add_field (field_ctype, f.get_cname ());
}
}
+
+ if (cl.source_reference.comment != null) {
+ decl_space.add_type_definition (new CCodeComment (cl.source_reference.comment));
+ }
+ decl_space.add_type_definition (instance_struct);
+
+ if (is_gtypeinstance) {
+ decl_space.add_type_definition (type_struct);
+ }
}
public virtual void generate_virtual_method_declaration (Method m, CCodeDeclarationSpace decl_space, CCodeStruct type_struct) {