mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Crash invoking a @body argument with the wrong number of parameters.
This commit is contained in:
@@ -2374,6 +2374,7 @@ static bool sema_call_analyse_body_expansion(SemaContext *macro_context, Expr *c
|
||||
if (expressions != vec_size(body_parameters))
|
||||
{
|
||||
PRINT_ERROR_AT(call, "Expected %d parameter(s) to %s.", vec_size(body_parameters), body_decl->name);
|
||||
return false;
|
||||
}
|
||||
Expr **args = call_expr->arguments;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user