2008-10-25 Jürg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala:
Support custom sentinels for constructors
svn path=/trunk/; revision=1929
+2008-10-25 Jürg Billeter <j@bitron.ch>
+
+ * gobject/valaccodegenerator.vala:
+
+ Support custom sentinels for constructors
+
2008-10-25 Jürg Billeter <j@bitron.ch>
* vala/valadelegate.vala:
}
if (ellipsis) {
- // ensure variable argument list ends with NULL
- creation_call.add_argument (new CCodeConstant ("NULL"));
+ /* ensure variable argument list ends with NULL
+ * except when using printf-style arguments */
+ if (!m.printf_format && m.sentinel != "") {
+ creation_call.add_argument (new CCodeConstant (m.sentinel));
+ }
}
creation_expr = creation_call;