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

pull/11092/head
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
1 changed files with 2 additions and 0 deletions

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.write(')')
g.definitions.write_string(')')
fargs << caname
fargtypes << arg_type_name
} else {
mut heap_prom := false
if scope != voidptr(0) {