new debugging helper to replace and friends

This commit is contained in:
Zahary Karadjov 2017-03-10 12:02:55 +02:00
commit 62ef5dfec8
2 changed files with 17 additions and 5 deletions

View file

@ -420,11 +420,6 @@ proc binaryStrSearch*(x: openArray[string], y: string): int =
return mid
result = - 1
template nimdbg*: untyped = c.module.fileIdx == gProjectMainIdx
template cnimdbg*: untyped = p.module.module.fileIdx == gProjectMainIdx
template pnimdbg*: untyped = p.lex.fileIdx == gProjectMainIdx
template lnimdbg*: untyped = L.fileIdx == gProjectMainIdx
proc parseIdeCmd*(s: string): IdeCmd =
case s:
of "sug": ideSug