2008-02-18 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala: support delegates throwing
exceptions, patch by Andrea Del Signore, fixes bug 517024
svn path=/trunk/; revision=1016
+2008-02-18 Jürg Billeter <j@bitron.ch>
+
+ * gobject/valaccodegenerator.vala: support delegates throwing
+ exceptions, patch by Andrea Del Signore, fixes bug 517024
+
2008-02-18 Jürg Billeter <j@bitron.ch>
* vapi/packages/gnet-2.0/: update to use vala-gen-introspect
}
+ if (m.get_error_domains ().size > 0) {
+ var cparam = new CCodeFormalParameter ("error", "GError**");
+ cparam_map.set (get_param_pos (-1), cparam);
+ }
+
// append C parameters in the right order
int last_pos = -1;
int min_pos;
i++;
}
+ if (m.get_error_domains ().size > 0) {
+ carg_map.set (get_param_pos (-1), new CCodeIdentifier ("error"));
+ }
+
var ccall = new CCodeFunctionCall (new CCodeIdentifier (m.get_cname ()));
// append C arguments in the right order