diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-05-16 17:32:18 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-05-16 17:32:18 +0200 |
commit | 503f7806765f0cc6f072f578e272d12d3f9cce56 (patch) | |
tree | f6ad4a0cdf637ae9335f73cae482b3deb36fb353 /compiler/astalgo.nim | |
parent | 224eec595a6112c7aa3a4c06afacc99167580464 (diff) | |
parent | 3e52bb6535a70339cf4a15123be09916ef0c31f6 (diff) | |
download | Nim-503f7806765f0cc6f072f578e272d12d3f9cce56.tar.gz |
Merge branch 'zahary' into araq2
Diffstat (limited to 'compiler/astalgo.nim')
-rw-r--r-- | compiler/astalgo.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim index 77108eb7b..1fc8b7cea 100644 --- a/compiler/astalgo.nim +++ b/compiler/astalgo.nim @@ -70,6 +70,8 @@ proc debug*(n: PNode) {.deprecated.} template mdbg*: bool {.dirty.} = when compiles(c.module): c.module.fileIdx == gProjectMainIdx + elif compiles(c.c.module): + c.c.module.fileIdx == gProjectMainIdx elif compiles(m.c.module): m.c.module.fileIdx == gProjectMainIdx elif compiles(cl.c.module): @@ -79,6 +81,8 @@ template mdbg*: bool {.dirty.} = p.lex.fileIdx == gProjectMainIdx else: p.module.module.fileIdx == gProjectMainIdx + elif compiles(m.module.fileIdx): + m.module.fileIdx == gProjectMainIdx elif compiles(L.fileIdx): L.fileIdx == gProjectMainIdx else: |