+2007-12-14 Jürg Billeter <j@bitron.ch>
+
+ * gobject/valaccodegeneratorinvocationexpression.vala: fix exception
+ handling with ellipsis parameters
+
2007-12-12 Jürg Billeter <j@bitron.ch>
* vala/valasymbolresolver.vala: readd support for void UnresolvedType,
}
}
}
+ } else if (expr.can_fail && !(m is DBusMethod)) {
+ // method can fail
+ current_method_inner_error = true;
+ ccall.add_argument (new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, new CCodeIdentifier ("inner_error")));
}
}
if (param.ellipsis) {
ellipsis = true;
+ if (expr.can_fail && !(m is DBusMethod)) {
+ // method can fail
+ current_method_inner_error = true;
+ ccall.add_argument (new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, new CCodeIdentifier ("inner_error")));
+ }
break;
}
ccall.add_argument (new CCodeIdentifier ("G_TYPE_INVALID"));
}
- if (expr.can_fail && !(m is DBusMethod)) {
+ if (!ellipsis && expr.can_fail && !(m is DBusMethod)) {
// method can fail
current_method_inner_error = true;
ccall.add_argument (new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, new CCodeIdentifier ("inner_error")));