mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
fix
This commit is contained in:
parent
6993b23645
commit
487db2fe17
1 changed files with 1 additions and 1 deletions
|
@ -2574,7 +2574,7 @@ fn (mut g Gen) call_args(node ast.CallExpr) {
|
||||||
tmp := if is_option { g.go_before_last_stmt() } else { '' }
|
tmp := if is_option { g.go_before_last_stmt() } else { '' }
|
||||||
if is_option {
|
if is_option {
|
||||||
g.writeln('${g.styp(varg_type)} ${tmp_var};')
|
g.writeln('${g.styp(varg_type)} ${tmp_var};')
|
||||||
g.write('_option_ok((${base_type}[]) {')
|
g.write('builtin___option_ok((${base_type}[]) {')
|
||||||
}
|
}
|
||||||
g.write('builtin__new_array_from_c_array${noscan}(${variadic_count}, ${variadic_count}, sizeof(${elem_type}), _MOV((${elem_type}[${variadic_count}]){')
|
g.write('builtin__new_array_from_c_array${noscan}(${variadic_count}, ${variadic_count}, sizeof(${elem_type}), _MOV((${elem_type}[${variadic_count}]){')
|
||||||
for j in arg_nr .. args.len {
|
for j in arg_nr .. args.len {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue