diff options
author | Michael Voronin <survivor.mail@gmail.com> | 2018-04-23 11:35:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-23 11:35:56 +0300 |
commit | 17d3c6f3f32649c7cc295e964e2fcc3af99eac20 (patch) | |
tree | d660abc250a7ded975908cac6e40a4c9a345efd9 /compiler/hlo.nim | |
parent | 04df7f147c6e08b28113173328d7e03fce381af9 (diff) | |
parent | a8b70c550083e432f0028e6582c97d8310a48c8a (diff) | |
download | Nim-17d3c6f3f32649c7cc295e964e2fcc3af99eac20.tar.gz |
Merge pull request #1 from nim-lang/devel
pull-23-04-18
Diffstat (limited to 'compiler/hlo.nim')
-rw-r--r-- | compiler/hlo.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/hlo.nim b/compiler/hlo.nim index 2bffaa173..c4288c362 100644 --- a/compiler/hlo.nim +++ b/compiler/hlo.nim @@ -44,7 +44,7 @@ proc applyPatterns(c: PContext, n: PNode): PNode = assert x.kind in {nkStmtList, nkCall} # better be safe than sorry, so check evalTemplateCounter too: inc(evalTemplateCounter) - if evalTemplateCounter > 100: + if evalTemplateCounter > evalTemplateLimit: globalError(n.info, errTemplateInstantiationTooNested) # deactivate this pattern: c.patterns[i] = nil |