summaryrefslogtreecommitdiff
path: root/libs/ardour/session_handle.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-09-04 22:36:14 +0200
committerRobin Gareus <robin@gareus.org>2015-09-04 22:36:14 +0200
commit015b588d65908991a1ebcba484dc2b629f0de84c (patch)
treebcfe67b4204ebf542593617671f7a2198389d144 /libs/ardour/session_handle.cc
parentad6c71e1fdaa9839210d288225816edb7b0cfe74 (diff)
print insanity-check message only in debug builds
Diffstat (limited to 'libs/ardour/session_handle.cc')
-rw-r--r--libs/ardour/session_handle.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/session_handle.cc b/libs/ardour/session_handle.cc
index e9284b7c98..99358dad03 100644
--- a/libs/ardour/session_handle.cc
+++ b/libs/ardour/session_handle.cc
@@ -83,9 +83,11 @@ SessionHandleRef::session_going_away ()
void
SessionHandleRef::insanity_check ()
{
+#ifndef NDEBUG
cerr << string_compose (
_("programming error: %1"),
string_compose("SessionHandleRef exists across session deletion! Dynamic type: %1 @ %2",
PBD::demangled_name (*this), this))
<< endl;
+#endif
}