Fix bug
This commit is contained in:
parent
fa1c4c636c
commit
8eb586fd80
2 changed files with 2 additions and 3 deletions
|
|
@ -449,8 +449,8 @@ proc printTree*(nimState: NimState, pnode: PNode, offset = "") =
|
||||||
|
|
||||||
proc printDebug*(nimState: NimState, node: TSNode) =
|
proc printDebug*(nimState: NimState, node: TSNode) =
|
||||||
if nimState.gState.debug:
|
if nimState.gState.debug:
|
||||||
necho ("Input => " & nimState.getNodeVal(node)).getCommented()
|
necho ("Input => " & nimState.getNodeVal(node)).getCommented() & "\n" &
|
||||||
necho nimState.gState.printLisp(node).getCommented()
|
nimState.gState.printLisp(node).getCommented()
|
||||||
|
|
||||||
proc printDebug*(nimState: NimState, pnode: PNode) =
|
proc printDebug*(nimState: NimState, pnode: PNode) =
|
||||||
if nimState.gState.debug:
|
if nimState.gState.debug:
|
||||||
|
|
|
||||||
|
|
@ -99,5 +99,4 @@ when not declared(CIMPORT):
|
||||||
|
|
||||||
template decho*(str: untyped): untyped =
|
template decho*(str: untyped): untyped =
|
||||||
if nimState.gState.debug:
|
if nimState.gState.debug:
|
||||||
let gState = nimState.gState
|
|
||||||
necho str.getCommented()
|
necho str.getCommented()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue