1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: push function arguments in fn_args() (#11086)

This commit is contained in:
alula 2021-08-06 19:01:20 +02:00 committed by GitHub
parent 4f2fe50b9b
commit e1cc1665dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -426,6 +426,8 @@ fn (mut g Gen) fn_args(args []ast.Param, is_variadic bool, scope &ast.Scope) ([]
g.fn_args(func.params, func.is_variadic, voidptr(0)) g.fn_args(func.params, func.is_variadic, voidptr(0))
g.write(')') g.write(')')
g.definitions.write_string(')') g.definitions.write_string(')')
fargs << caname
fargtypes << arg_type_name
} else { } else {
mut heap_prom := false mut heap_prom := false
if scope != voidptr(0) { if scope != voidptr(0) {