allow to compile PBD::Signals w/o connection debugging
[ardour.git] / libs / pbd / stacktrace.cc
index ead7e33e4bf7814e06bcdf858d4ccd830438e06d..c74dd946f78d7896246d4dfe36f19df64440bc32 100644 (file)
@@ -22,6 +22,7 @@
 #include "pbd/stacktrace.h"
 #include <cstdio>
 #include <iostream>
+#include <string>
 
 void
 PBD::trace_twb ()
@@ -93,7 +94,6 @@ PBD::stacktrace (std::ostream& out, int levels)
                        
                        for (i = 0; i < size && (levels == 0 || i < size_t(levels)); i++) {
                                out << "  " << demangle (strings[i]) << std::endl;
-                               std::cerr << "  " << demangle (strings[i]) << std::endl;
                        }
                        
                        free (strings);
@@ -105,6 +105,12 @@ PBD::stacktrace (std::ostream& out, int levels)
 
 #else
 
+std::string 
+PBD::demangle (std::string const & l) /* JE - !!!! 'PBD' namespace might possibly get removed (except it's still used in 'libs/canvas/item.cc') */
+{
+       return std::string();
+}
+
 void
 PBD::stacktrace (std::ostream& out, int /*levels*/)
 {