mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 23:30:46 +00:00
Made use of ... varargs result in failure, as we don't currently seem
to support it.
This commit is contained in:
parent
f11a8d5735
commit
761823a1f3
@ -470,6 +470,12 @@ op_dcl(TreeState *state)
|
||||
gboolean op_notxpcom =
|
||||
(IDL_tree_property_get(op->ident, "notxpcom") != NULL);
|
||||
IDL_tree iter;
|
||||
|
||||
if (op->f_varargs) {
|
||||
/* We don't currently support varargs. */
|
||||
IDL_tree_error(state->tree, "varargs are not currently supported\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
xpidl_write_comment(state, 2);
|
||||
|
||||
|
@ -859,6 +859,12 @@ typelib_op_dcl(TreeState *state)
|
||||
uint8 op_flags = 0;
|
||||
gboolean op_notxpcom = !!IDL_tree_property_get(op->ident, "notxpcom");
|
||||
gboolean op_noscript = !!IDL_tree_property_get(op->ident, "noscript");
|
||||
|
||||
if (op->f_varargs) {
|
||||
/* We don't currently support varargs. */
|
||||
IDL_tree_error(state->tree, "varargs are not currently supported\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (!XPT_InterfaceDescriptorAddMethods(id, 1))
|
||||
return FALSE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user