* @brief Validates that an integer falls within [0, modeCount). */
| 38 | * @brief Validates that an integer falls within [0, modeCount). |
| 39 | */ |
| 40 | [[nodiscard]] static bool indexInRange(int v, int count) |
| 41 | { |
| 42 | return v >= 0 && v < count; |
| 43 | } |
| 44 | |
| 45 | //-------------------------------------------------------------------------------------------------- |
| 46 | // Command registration |
no outgoing calls
no test coverage detected