diff options
-rw-r--r-- | compiler/destroyer.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/destroyer.nim b/compiler/destroyer.nim index caa18af92..0fdeceba0 100644 --- a/compiler/destroyer.nim +++ b/compiler/destroyer.nim @@ -296,7 +296,8 @@ proc p(n: PNode; c: var Con): PNode = recurse(n, result) proc injectDestructorCalls*(owner: PSym; n: PNode): PNode = - echo "injecting into ", n + when defined(nimDebugDestroys): + echo "injecting into ", n var c: Con c.owner = owner c.tmp = newSym(skTemp, getIdent":d", owner, n.info) |