vala r1016 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1016 - in trunk: . gobject
- Date: Mon, 18 Feb 2008 21:21:05 +0000 (GMT)
Author: juergbi
Date: Mon Feb 18 21:21:05 2008
New Revision: 1016
URL: http://svn.gnome.org/viewvc/vala?rev=1016&view=rev
Log:
2008-02-18 Juerg Billeter <j bitron ch>
* gobject/valaccodegenerator.vala: support delegates throwing
exceptions, patch by Andrea Del Signore, fixes bug 517024
Modified:
trunk/ChangeLog
trunk/gobject/valaccodegenerator.vala
Modified: trunk/gobject/valaccodegenerator.vala
==============================================================================
--- trunk/gobject/valaccodegenerator.vala (original)
+++ trunk/gobject/valaccodegenerator.vala Mon Feb 18 21:21:05 2008
@@ -3148,6 +3148,11 @@
}
+ 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;
@@ -3197,6 +3202,10 @@
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]