diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2020-01-15 16:48:45 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2020-01-15 16:48:45 -0600 |
| commit | 8eb586fd8064486612e19fb18e02b714ad803067 (patch) | |
| tree | 6a2f976bcb12d43394e7cdd398614d674432afc3 | |
| parent | fa1c4c636ce58e798dbbe9701a264987247765a8 (diff) | |
| download | nimterop-8eb586fd8064486612e19fb18e02b714ad803067.tar.gz nimterop-8eb586fd8064486612e19fb18e02b714ad803067.zip | |
Fix bug
| -rw-r--r-- | nimterop/getters.nim | 4 | ||||
| -rw-r--r-- | 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() |
