summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2015-10-29 21:58:51 +1000
committerTim Mayberry <mojofunk@gmail.com>2015-12-01 14:22:38 +1000
commit5f4f89fb39236aea59a4c92a0f28622a7224fcb4 (patch)
treeb559537a29ee2ebe5ad9e2d6d15b3e23baf2eb7a /libs/pbd/pbd
parent254c1e2c918cb615eb3d1b5b7c30fb40345b9825 (diff)
Move PBD symbol demangle functions into pbd/demangle.h/cc
Add pbd/demangle.cc source file and move functions from pbd/stacktrace.cc into it
Diffstat (limited to 'libs/pbd/pbd')
-rw-r--r--libs/pbd/pbd/demangle.h14
-rw-r--r--libs/pbd/pbd/stacktrace.h1
2 files changed, 14 insertions, 1 deletions
diff --git a/libs/pbd/pbd/demangle.h b/libs/pbd/pbd/demangle.h
index a8487f96d0..1ca2925fd0 100644
--- a/libs/pbd/pbd/demangle.h
+++ b/libs/pbd/pbd/demangle.h
@@ -52,6 +52,20 @@ namespace PBD
return typeid(obj).name();
}
+
+ /**
+ * @param a mangled symbol/name
+ * @return a demangled symbol/name
+ */
+ LIBPBD_API std::string symbol_demangle(const std::string&);
+
+ /**
+ * @param a string containing a mangled symbol/name
+ * @return a string with the mangled symbol/name replaced with a demangled
+ * name
+ */
+ LIBPBD_API std::string demangle(const std::string&);
+
} // namespace
#endif // __libpbd_demangle_h__
diff --git a/libs/pbd/pbd/stacktrace.h b/libs/pbd/pbd/stacktrace.h
index 17a719e9ae..99fc9d5c57 100644
--- a/libs/pbd/pbd/stacktrace.h
+++ b/libs/pbd/pbd/stacktrace.h
@@ -41,7 +41,6 @@ namespace PBD {
LIBPBD_API void stacktrace (std::ostream& out, int levels = 0);
LIBPBD_API void trace_twb();
- LIBPBD_API std::string demangle (const std::string&);
template<typename T>
class /*LIBPBD_API*/ thing_with_backtrace