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:
Paul Davis 2025-08-20 17:35:46 -06:00 committed by Edgar Aichinger
parent f1606db64a
commit 96e5229ad1

View file

@ -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);
}