From 7e15d5134bb4c98a96307d16621eb836543bb083 Mon Sep 17 00:00:00 2001 From: jcosborn Date: Thu, 19 Apr 2018 15:39:18 -0500 Subject: allow setting template/macro recursive evaluation limits (#7652) * allow setting template/macro recursive evaluation limits * revert setting template/macro eval limits set them to 1000 --- compiler/sem.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/sem.nim') diff --git a/compiler/sem.nim b/compiler/sem.nim index 4fef1bc60..041f2e127 100644 --- a/compiler/sem.nim +++ b/compiler/sem.nim @@ -377,7 +377,7 @@ proc semAfterMacroCall(c: PContext, call, macroResult: PNode, ## reassigned, and binding the unbound identifiers that the macro output ## contains. inc(evalTemplateCounter) - if evalTemplateCounter > 100: + if evalTemplateCounter > evalTemplateLimit: globalError(s.info, errTemplateInstantiationTooNested) c.friendModules.add(s.owner.getModule) -- cgit 1.4.1-2-gfad0