mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-02 03:47:42 +01:00
temporal: in the event of the most common logic failure, provide more info
TEMPORAL_MAP_ASSERT() doesn't give us any actual values or context.
This commit is contained in:
parent
f1606db64a
commit
96e5229ad1
1 changed files with 4 additions and 0 deletions
|
|
@ -652,6 +652,10 @@ TempoPoint::superclock_at (Temporal::Beats const & qn) const
|
|||
TEMPO_MAP_ASSERT (_quarters == Beats());
|
||||
} else {
|
||||
/* positive */
|
||||
if (qn < _quarters) {
|
||||
std::cerr << "\n\nLOGIC FAIL sc @ " << qn << " using " << *this << std::endl;
|
||||
PBD::stacktrace (std::cerr, 19);
|
||||
}
|
||||
TEMPO_MAP_ASSERT (qn >= _quarters);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue