GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit 00254c06 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

fix error handling in static constructors, fixes bug 528111

2008-04-16  Juerg Billeter  <j@bitron.ch>

	* gobject/valaccodegenerator.vala: fix error handling in static
	  constructors, fixes bug 528111

svn path=/trunk/; revision=1249
parent 473c5cd2
2008-04-16 Jürg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala: fix error handling in static
constructors, fixes bug 528111
2008-04-16 Jürg Billeter <j@bitron.ch>
* vapi/dbus-glib-1.vapi: fix dbus_connection_setup_with_g_main binding
......
......@@ -983,6 +983,16 @@ public class Vala.CCodeGenerator : CodeGenerator {
} else {
// static class constructor
// add to class_init
if (current_method_inner_error) {
/* always separate error parameter and inner_error local variable
* as error may be set to NULL but we're always interested in inner errors
*/
var cdecl = new CCodeDeclaration ("GError *");
cdecl.add_declarator (new CCodeVariableDeclarator.with_initializer ("inner_error", new CCodeConstant ("NULL")));
class_init_fragment.append (cdecl);
}
class_init_fragment.append (c.body.ccodenode);
}
}
......
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