Fix bug
This commit is contained in:
parent
1fe199e1d8
commit
c87587a068
2 changed files with 6 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue