mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 23:17:46 +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
|
void
|
||||||
SessionHandleRef::insanity_check ()
|
SessionHandleRef::insanity_check ()
|
||||||
{
|
{
|
||||||
|
#ifndef NDEBUG
|
||||||
cerr << string_compose (
|
cerr << string_compose (
|
||||||
_("programming error: %1"),
|
_("programming error: %1"),
|
||||||
string_compose("SessionHandleRef exists across session deletion! Dynamic type: %1 @ %2",
|
string_compose("SessionHandleRef exists across session deletion! Dynamic type: %1 @ %2",
|
||||||
PBD::demangled_name (*this), this))
|
PBD::demangled_name (*this), this))
|
||||||
<< endl;
|
<< endl;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue