diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-03-01 19:50:00 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-03-01 19:50:00 +0100 |
commit | 9687ea3c3e46160e44195a91922de2089cb50874 (patch) | |
tree | 02325cd07145b7ef517cd0d3656d4a20b2081ba2 /compiler | |
parent | 1463b0c954e0d50e17676467756aa5016f128651 (diff) | |
download | Nim-9687ea3c3e46160e44195a91922de2089cb50874.tar.gz |
debug() uses 'echo' because stderr is an abomination
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/astalgo.nim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim index 4772009b4..3ca44ea7e 100644 --- a/compiler/astalgo.nim +++ b/compiler/astalgo.nim @@ -448,20 +448,20 @@ proc debugTree(n: PNode, indent: int, maxRecDepth: int; proc debug(n: PSym) = if n == nil: - msgWriteln("null") + echo("null") elif n.kind == skUnknown: - msgWriteln("skUnknown") + echo("skUnknown") else: #writeLine(stdout, $symToYaml(n, 0, 1)) - msgWriteln("$1_$2: $3, $4, $5, $6" % [ + echo("$1_$2: $3, $4, $5, $6" % [ n.name.s, $n.id, $flagsToStr(n.flags), $flagsToStr(n.loc.flags), $lineInfoToStr(n.info), $n.kind]) proc debug(n: PType) = - msgWriteln($debugType(n)) + echo($debugType(n)) proc debug(n: PNode) = - msgWriteln($debugTree(n, 0, 100)) + echo($debugTree(n, 0, 100)) const EmptySeq = @[] |