MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / indexInRange

Function indexInRange

app/src/API/Handlers/MqttHandler.cpp:40–43  ·  view source on GitHub ↗

* @brief Validates that an integer falls within [0, modeCount). */

Source from the content-addressed store, hash-verified

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

Callers 3

applyPublisherTopicsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected