summary refs log tree commit diff stats
path: root/compiler/evaltempl.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-05-12 16:35:59 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-05-12 16:35:59 +0200
commitce859d8c166595184832b4bbfb663cba2fc68901 (patch)
treeab6de5c671c6caa848be73a8d15159cce24337d4 /compiler/evaltempl.nim
parent05724645f815bea56a65bd78a9f2228811573413 (diff)
downloadNim-ce859d8c166595184832b4bbfb663cba2fc68901.tar.gz
more modules compile again
Diffstat (limited to 'compiler/evaltempl.nim')
-rw-r--r--compiler/evaltempl.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/evaltempl.nim b/compiler/evaltempl.nim
index 2133701e6..311bb6539 100644
--- a/compiler/evaltempl.nim
+++ b/compiler/evaltempl.nim
@@ -114,7 +114,7 @@ proc evalTemplateArgs(n: PNode, s: PSym; conf: ConfigRef; fromHlo: bool): PNode
 
 # to prevent endless recursion in template instantiation
 const evalTemplateLimit* = 1000
-var evalTemplateCounter* = 0
+var evalTemplateCounter* = 0 # XXX remove this global
 
 proc wrapInComesFrom*(info: TLineInfo; sym: PSym; res: PNode): PNode =
   when true: