mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 07:06:23 +01:00
print insanity-check message only in debug builds
This commit is contained in:
parent
ad6c71e1fd
commit
015b588d65
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue