diff --git a/vlib/v/gen/c/fn.v b/vlib/v/gen/c/fn.v index 15649442e0..7255c8b7b8 100644 --- a/vlib/v/gen/c/fn.v +++ b/vlib/v/gen/c/fn.v @@ -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) {