Commit d54e9603 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

widl: Emit default argument values for cpp methods.

parent f31c2d1d
......@@ -876,6 +876,13 @@ void write_args(FILE *h, const var_list_t *args, const char *name, int method, i
else fprintf(h, ",");
}
write_type_decl(h, arg->type, arg->name);
if (method == 2) {
const expr_t *expr = get_attrp(arg->attrs, ATTR_DEFAULTVALUE);
if (expr) {
fprintf(h, " = ");
write_expr( h, expr, 0, 1, NULL, NULL, "" );
}
}
count++;
}
if (do_indent) indentation--;
......
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