Commit 43a23898 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

support exceptions in virtual methods

2007-08-07  Juerg Billeter  <j@bitron.ch>

	* gobject/valacodegeneratormethod.vala: support exceptions in virtual
	  methods

svn path=/trunk/; revision=430
parent ad7b17bb
2007-08-07 Jürg Billeter <j@bitron.ch>
* gobject/valacodegeneratormethod.vala: support exceptions in virtual
methods
2007-08-07 Jürg Billeter <j@bitron.ch>
* vapi/libsoup-2.2.vala, vapigen/valagidlparser.vala: fix
......
......@@ -367,6 +367,12 @@ public class Vala.CodeGenerator {
}
}
if (m.get_error_domains ().size > 0) {
var cparam = new CCodeFormalParameter ("error", "GError**");
vfunc.add_parameter (cparam);
vcall.add_argument (new CCodeIdentifier (cparam.name));
}
if (m.return_type.data_type == null) {
vblock.add_statement (new CCodeExpressionStatement (vcall));
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment