print insanity-check message only in debug builds
This commit is contained in:
parent
ad6c71e1fd
commit
015b588d65
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user