summaryrefslogtreecommitdiff
path: root/ace/RB_Tree.cpp
diff options
context:
space:
mode:
authordhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-07-27 20:48:28 +0000
committerdhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-07-27 20:48:28 +0000
commit1f91ef90072d1703e75e519eb40678c55f71f2e4 (patch)
tree41ca1b5df67921f46f3cb4b73434c76c82006d06 /ace/RB_Tree.cpp
parent3a7046470e4995d08cff64176cb6b97adaf30155 (diff)
downloadATCD-1f91ef90072d1703e75e519eb40678c55f71f2e4.tar.gz
ChangeLogTag:Sun Jul 27 20:19:48 UTC 2003 Don Hinton <dhinton@dresystems.com>
Diffstat (limited to 'ace/RB_Tree.cpp')
-rw-r--r--ace/RB_Tree.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ace/RB_Tree.cpp b/ace/RB_Tree.cpp
index 9d9bc2d9b94..4a83edfdb4e 100644
--- a/ace/RB_Tree.cpp
+++ b/ace/RB_Tree.cpp
@@ -811,6 +811,7 @@ template <class EXT_ID, class INT_ID, class COMPARE_KEYS, class ACE_LOCK> void
ACE_RB_Tree<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::
dump_i (ACE_RB_Tree_Node<EXT_ID, INT_ID> *node) const
{
+#if defined (ACE_HAS_DUMP)
if (node)
{
dump_node_i (*node);
@@ -827,6 +828,7 @@ dump_i (ACE_RB_Tree_Node<EXT_ID, INT_ID> *node) const
{
ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\nNULL POINTER (BLACK)\n")));
}
+#endif /* ACE_HAS_DUMP */
}
@@ -838,10 +840,12 @@ template <class EXT_ID, class INT_ID, class COMPARE_KEYS, class ACE_LOCK> void
ACE_RB_Tree<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::
dump_node_i (ACE_RB_Tree_Node<EXT_ID, INT_ID> &node) const
{
+#if defined (ACE_HAS_DUMP)
const char * color_str = (node.color () == ACE_RB_Tree_Node_Base::RED)
? "RED" : "BLACK";
ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT (" color=[%s]\n"), color_str));
+#endif /* ACE_HAS_DUMP */
}
/// Tests the red-black invariant(s) throughout the whole tree.