parent
09283bb939
commit
1c478db375
4 changed files with 34 additions and 8 deletions
|
|
@ -69,22 +69,22 @@ proc debug*(n: PNode) {.deprecated.}
|
|||
|
||||
template mdbg*: bool {.dirty.} =
|
||||
when compiles(c.module):
|
||||
c.module.fileIdx.int32 == gProjectMainIdx
|
||||
c.module.fileIdx.int32 == c.config.projectMainIdx
|
||||
elif compiles(c.c.module):
|
||||
c.c.module.fileIdx.int32 == gProjectMainIdx
|
||||
c.c.module.fileIdx.int32 == c.c.config.projectMainIdx
|
||||
elif compiles(m.c.module):
|
||||
m.c.module.fileIdx.int32 == gProjectMainIdx
|
||||
m.c.module.fileIdx.int32 == m.c.config.projectMainIdx
|
||||
elif compiles(cl.c.module):
|
||||
cl.c.module.fileIdx.int32 == gProjectMainIdx
|
||||
cl.c.module.fileIdx.int32 == cl.c.config.projectMainIdx
|
||||
elif compiles(p):
|
||||
when compiles(p.lex):
|
||||
p.lex.fileIdx.int32 == gProjectMainIdx
|
||||
p.lex.fileIdx.int32 == p.lex.config.projectMainIdx
|
||||
else:
|
||||
p.module.module.fileIdx.int32 == gProjectMainIdx
|
||||
p.module.module.fileIdx.int32 == p.config.projectMainIdx
|
||||
elif compiles(m.module.fileIdx):
|
||||
m.module.fileIdx.int32 == gProjectMainIdx
|
||||
m.module.fileIdx.int32 == m.config.projectMainIdx
|
||||
elif compiles(L.fileIdx):
|
||||
L.fileIdx.int32 == gProjectMainIdx
|
||||
L.fileIdx.int32 == L.config.projectMainIdx
|
||||
else:
|
||||
error()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue