Add -B/--backtrace option to RGBASM and RGBLINK (#1787)

This commit is contained in:
Rangi
2025-08-11 14:30:14 -04:00
committed by GitHub
parent 92a9c73ee7
commit 5f8b7474b4
303 changed files with 2729 additions and 2409 deletions

View File

@@ -53,12 +53,15 @@ struct DiagnosticsState {
bool warningsAreErrors = false;
};
static constexpr uint64_t TRACE_COLLAPSE = UINT64_MAX;
template<typename L, typename W>
struct Diagnostics {
std::vector<WarningFlag<L>> metaWarnings;
std::vector<WarningFlag<L>> warningFlags;
std::vector<ParamWarning<W>> paramWarnings;
DiagnosticsState<W> state;
uint64_t traceDepth;
uint64_t nbErrors;
void incrementErrors() {