Skip to content

Commit

Permalink
We added dup_function for struct
Browse files Browse the repository at this point in the history
  • Loading branch information
kamanashisroy committed May 6, 2015
1 parent fc47419 commit 7a003aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions codegenplug/symbols/structmodule.vala
Expand Up @@ -81,6 +81,8 @@ public class codegenplug.StructModule : shotodolplug.Module {
decl_space.add_type_definition (instance_struct);
var func_macro = new CCodeMacroReplacement("%s(x,xindex,y,yindex)".printf(resolve.get_ccode_free_function(st)), "({%s(x,xindex,y,yindex);})".printf(resolve.get_ccode_copy_function(st)));
decl_space.add_type_declaration (func_macro);
var dup_func_macro = new CCodeMacroReplacement("%s(x)".printf(resolve.get_ccode_dup_function(st)), "({x;})");
decl_space.add_type_declaration (dup_func_macro);
}

void generate_struct_copy_function (Struct st) {
Expand Down

0 comments on commit 7a003aa

Please sign in to comment.