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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user