2026-02-17 10:42:36 -07:00
|
|
|
#pragma once
|
|
|
|
|
// Sprint 30 refactor: shared debug validation helpers
|
|
|
|
|
|
2026-02-17 10:59:27 -07:00
|
|
|
#include <cstdint>
|
2026-02-17 10:42:36 -07:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
inline bool hasRequiredDebugIds(const std::string& a, const std::string& b) {
|
|
|
|
|
return !a.empty() && !b.empty();
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-17 10:59:27 -07:00
|
|
|
inline bool hasRequiredDebugIds(const std::string& a,
|
|
|
|
|
const std::string& b,
|
|
|
|
|
const std::string& c) {
|
|
|
|
|
return hasRequiredDebugIds(a, b) && !c.empty();
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-17 10:42:36 -07:00
|
|
|
inline bool isPositiveLine(int line) {
|
|
|
|
|
return line > 0;
|
|
|
|
|
}
|
2026-02-17 10:59:27 -07:00
|
|
|
|
|
|
|
|
inline bool isNonZeroU64(std::uint64_t value) {
|
|
|
|
|
return value > 0;
|
|
|
|
|
}
|