summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2017-06-13 16:10:40 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-07-13 18:25:42 -0300
commit97030c4d0d7924f785e79b98a25f67396e7ab0fb (patch)
treedb81ca239e2eea1656f45d5b0defbdbb447c868b
parent9cf2726fa9a4e80415e721fbe8944db41dd09dbe (diff)
eolian_mono: Default values for return vars
-rw-r--r--src/bin/eolian_mono/eolian/mono/parameter.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/parameter.hh b/src/bin/eolian_mono/eolian/mono/parameter.hh
index cba6bdd3c7..50083802f1 100644
--- a/src/bin/eolian_mono/eolian/mono/parameter.hh
+++ b/src/bin/eolian_mono/eolian/mono/parameter.hh
@@ -601,7 +601,7 @@ struct native_convert_out_variable_generator
601 ) 601 )
602 { 602 {
603 return as_generator( 603 return as_generator(
604 "eina.Binbuf " << string << ";\n" 604 "eina.Binbuf " << string << " = default(eina.Binbuf);\n"
605 ).generate(sink, out_variable_name(param.param_name), context); 605 ).generate(sink, out_variable_name(param.param_name), context);
606 } 606 }
607 else if (param_is_acceptable(param, "Eina_Array *", WANT_OWN, WANT_OUT) 607 else if (param_is_acceptable(param, "Eina_Array *", WANT_OWN, WANT_OUT)
@@ -622,8 +622,8 @@ struct native_convert_out_variable_generator
622 if (!complex) 622 if (!complex)
623 return false; 623 return false;
624 return as_generator( 624 return as_generator(
625 type << " " << string << ";\n" 625 type << " " << string << " = default(" << type << ");\n"
626 ).generate(sink, std::make_tuple(param.type, out_variable_name(param.param_name)), context); 626 ).generate(sink, std::make_tuple(param.type, out_variable_name(param.param_name), param.type), context);
627 } 627 }
628 else if (param.direction == attributes::parameter_direction::out) 628 else if (param.direction == attributes::parameter_direction::out)
629 { 629 {