From 8eb586fd8064486612e19fb18e02b714ad803067 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Wed, 15 Jan 2020 16:48:45 -0600 Subject: [PATCH] Fix bug --- nimterop/getters.nim | 4 ++-- nimterop/globals.nim | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/nimterop/getters.nim b/nimterop/getters.nim index 94bfbb3..f123336 100644 --- a/nimterop/getters.nim +++ b/nimterop/getters.nim @@ -449,8 +449,8 @@ proc printTree*(nimState: NimState, pnode: PNode, offset = "") = proc printDebug*(nimState: NimState, node: TSNode) = if nimState.gState.debug: - necho ("Input => " & nimState.getNodeVal(node)).getCommented() - necho 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: diff --git a/nimterop/globals.nim b/nimterop/globals.nim index cc7d499..9db0013 100644 --- a/nimterop/globals.nim +++ b/nimterop/globals.nim @@ -99,5 +99,4 @@ when not declared(CIMPORT): template decho*(str: untyped): untyped = if nimState.gState.debug: - let gState = nimState.gState necho str.getCommented()