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
parent 5aed12b90e
commit 607f3577bd

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