Reduce recursion max further.

This commit is contained in:
Christoffer Lerno
2023-07-04 18:51:34 +02:00
parent 20c0bbc911
commit 6231cc83d9

View File

@@ -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;