mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Reduce recursion max further.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user