mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Splat/unsplat/typed varargs
This commit is contained in:
committed by
Christoffer Lerno
parent
12fbaf476b
commit
21d4ecf9b4
@@ -331,6 +331,10 @@ static inline bool sema_analyse_function_param(Context *context, Decl *param, bo
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (param->var.vararg)
|
||||
{
|
||||
param->var.type_info->type = type_get_subarray(param->var.type_info->type);
|
||||
}
|
||||
param->type = param->var.type_info->type;
|
||||
if (param->var.init_expr && !is_function)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user