const Arg_List arg_list = make_dll_arg_list(gwi, &gwi->func);
m_uint depth;
Type_Decl *td = str2decl(gwi->gwion->env, gwi->func.type, &depth, gwi->loc);
+ if(depth)
+ td->array = make_dll_arg_list_array(gwi->gwion->mp, NULL, &depth, 0);
const Func_Def fdef = new_func_def(gwi->gwion->mp, new_func_base(gwi->gwion->mp,
td, insert_symbol(gwi->gwion->st, ck->name), arg_list), NULL, ae_flag_builtin, loc_cpy(gwi->gwion->mp, gwi->loc));
fdef->base->tmpl = new_tmpl(gwi->gwion->mp, ck->tmpl, -1);
}
GWION_IMPORT(func_tmpl) {
- GWI_BB(gwi_func_ini(gwi, "void", "<~A~>test", func_tmpl_xfun))
+ GWI_BB(gwi_func_ini(gwi, "int[]", "<~A~>test", func_tmpl_xfun))
GWI_BB(gwi_func_arg(gwi, "A", "i"))
GWI_BB(gwi_func_end(gwi, 0))
return GW_OK;