revert debug statements
This commit is contained in:
parent
4c327d9ae2
commit
c0b91bc024
1 changed files with 6 additions and 5 deletions
|
|
@ -632,7 +632,7 @@ proc p(n: PNode; c: var Con): PNode =
|
||||||
recurse(n, result)
|
recurse(n, result)
|
||||||
|
|
||||||
proc injectDestructorCalls*(g: ModuleGraph; owner: PSym; n: PNode): PNode =
|
proc injectDestructorCalls*(g: ModuleGraph; owner: PSym; n: PNode): PNode =
|
||||||
when true: # defined(nimDebugDestroys):
|
when false: # defined(nimDebugDestroys):
|
||||||
echo "injecting into ", n
|
echo "injecting into ", n
|
||||||
var c: Con
|
var c: Con
|
||||||
c.owner = owner
|
c.owner = owner
|
||||||
|
|
@ -668,7 +668,8 @@ proc injectDestructorCalls*(g: ModuleGraph; owner: PSym; n: PNode): PNode =
|
||||||
else:
|
else:
|
||||||
result.add body
|
result.add body
|
||||||
|
|
||||||
when true:
|
when defined(nimDebugDestroys):
|
||||||
echo "------------------------------------"
|
if true:
|
||||||
echo owner.name.s, " transformed to: "
|
echo "------------------------------------"
|
||||||
echo result
|
echo owner.name.s, " transformed to: "
|
||||||
|
echo result
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue