diff --git a/src/compiler/sema_expr.c b/src/compiler/sema_expr.c index fd08e854c..9d34b4acc 100644 --- a/src/compiler/sema_expr.c +++ b/src/compiler/sema_expr.c @@ -1788,7 +1788,7 @@ bool sema_expr_analyse_macro_call(SemaContext *context, Expr *call_expr, Expr *s { assert(decl->decl_kind == DECL_MACRO); - if (context->macro_call_depth > 512) + if (context->macro_call_depth > 256) { SEMA_ERROR(call_expr, "Failure evaluating macro, max call depth reached, possibly due non-terminating macro recursion."); decl->decl_kind = DECL_POISONED;