widl: Emit default argument values for cpp methods.

oldstable
Nikolay Sivov 2012-07-26 15:20:50 +04:00 committed by Alexandre Julliard
parent f31c2d1df1
commit d54e9603b5
1 changed files with 7 additions and 0 deletions

View File

@ -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--;