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:
parent
4f2fe50b9b
commit
e1cc1665dc
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user