summaryrefslogtreecommitdiff
path: root/src/expr/node_value.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2010-10-12 21:59:40 +0000
committerMorgan Deters <mdeters@gmail.com>2010-10-12 21:59:40 +0000
commit8a00a28423e3a9d363b98cc5713af3a621b3b7e0 (patch)
tree6e5eabdd701e62ad655586e510905829a23154c4 /src/expr/node_value.h
parentb5a68d2181e23094558069058663460b04b2303a (diff)
fix debugPrintNode(), debugPrintTNode(), debugPrintNodeValue(), debugPrintTypeNode() -- thanks Tim for pointing this out
Diffstat (limited to 'src/expr/node_value.h')
-rw-r--r--src/expr/node_value.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/expr/node_value.h b/src/expr/node_value.h
index a42f39e15..1256ec64f 100644
--- a/src/expr/node_value.h
+++ b/src/expr/node_value.h
@@ -471,7 +471,9 @@ inline std::ostream& operator<<(std::ostream& out, const NodeValue& nv) {
* flushes the stream.
*/
static void __attribute__((used)) debugPrintNodeValue(const expr::NodeValue* nv) {
- Warning() << Node::setdepth(-1) << *nv << std::endl;
+ Warning() << Node::setdepth(-1)
+ << Node::setlanguage(language::output::LANG_AST)
+ << *nv << std::endl;
Warning().flush();
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback