diff options
Diffstat (limited to 'codegen/valaccodemethodcallmodule.vala')
-rw-r--r-- | codegen/valaccodemethodcallmodule.vala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala index 894660c88..d7ac3f4b0 100644 --- a/codegen/valaccodemethodcallmodule.vala +++ b/codegen/valaccodemethodcallmodule.vala @@ -715,7 +715,9 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule { if (ellipsis) { /* ensure variable argument list ends with NULL * except when using printf-style arguments */ - if (m == null) { + if (itype is SignalType) { + // g_signal_emit*() does not require more + } else if (m == null) { in_arg_map.set (get_param_pos (-1, true), new CCodeConstant ("NULL")); } else if (!m.printf_format && !m.scanf_format && get_ccode_sentinel (m) != "" && !expr.is_constructv_chainup) { in_arg_map.set (get_param_pos (-1, true), new CCodeConstant (get_ccode_sentinel (m))); |