13
0

Add dynamic type to SessionHandleRef debug output

git-svn-id: svn://localhost/ardour2/branches/3.0@8516 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Sakari Bergen 2011-01-16 19:17:45 +00:00
parent 64abea1db2
commit dad0671ba0

View File

@ -17,6 +17,7 @@
*/ */
#include "pbd/demangle.h"
#include "pbd/error.h" #include "pbd/error.h"
#include "pbd/boost_debug.h" #include "pbd/boost_debug.h"
@ -82,5 +83,9 @@ SessionHandleRef::session_going_away ()
void void
SessionHandleRef::insanity_check () SessionHandleRef::insanity_check ()
{ {
cerr << string_compose (_("programming error: %1"), "SessionHandleRef exists across sesssion deletion!") << endl; cerr << string_compose (
_("programming error: %1"),
string_compose("SessionHandleRef exists across sesssion deletion! Dynamic type: %1",
PBD::demangled_name (*this)))
<< endl;
} }