This commit is contained in:
Ganesh Viswanathan 2020-01-15 16:48:45 -06:00
commit c87587a068
2 changed files with 6 additions and 2 deletions

View file

@ -453,8 +453,8 @@ template decho*(str: untyped): untyped =
proc printDebug*(nimState: NimState, node: TSNode) =
if nimState.gState.debug:
echo ("Input => " & nimState.getNodeVal(node)).getCommented()
echo nimState.gState.printLisp(node).getCommented()
necho ("Input => " & nimState.getNodeVal(node)).getCommented() & "\n" &
nimState.gState.printLisp(node).getCommented()
proc printDebug*(nimState: NimState, pnode: PNode) =
if nimState.gState.debug:

View file

@ -96,3 +96,7 @@ when not declared(CIMPORT):
template necho*(args: string) {.dirty.} =
let gState = nimState.gState
gecho args
template decho*(str: untyped): untyped =
if nimState.gState.debug:
necho str.getCommented()