mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Additional fixes on $define
This commit is contained in:
@@ -4582,7 +4582,7 @@ bool sema_analyse_var_decl(SemaContext *context, Decl *decl, bool local)
|
||||
CallEnvKind env_kind = context->call_env.kind;
|
||||
if (is_static) context->call_env.kind = CALL_ENV_FUNCTION_STATIC;
|
||||
decl->in_init = true;
|
||||
if (!sema_expr_analyse_assign_right_side(context, NULL, decl->type, init, false, true))
|
||||
if (!sema_expr_analyse_assign_right_side(context, NULL, decl->type, init, false, true, NULL))
|
||||
{
|
||||
context->call_env.kind = env_kind;
|
||||
return decl_poison(decl);
|
||||
|
||||
Reference in New Issue
Block a user