From 8376d99e88991f6975ffef55f224c0faa8bf7a1e Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 22 Aug 2014 16:07:03 -0400 Subject: [PATCH] Tree - Added node pointer to ::dump output. Helps debugging. --- src/Tree.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Tree.cpp b/src/Tree.cpp index 6d60d2627..0e5bcc045 100644 --- a/src/Tree.cpp +++ b/src/Tree.cpp @@ -273,7 +273,8 @@ void Tree::dumpNode (Tree* t, int depth, std::stringstream& output) for (int i = 0; i < depth; ++i) output << " "; - output << "\033[1m" << t->_name << "\033[0m"; + output << std::hex << t << " " + << "\033[1m" << t->_name << "\033[0m"; // Dump attributes. std::string atts;