MCPcopy Create free account
hub / github.com/kiibohd/controller / CLI_wrap

Function CLI_wrap

Debug/cli/cli.c:495–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495inline int CLI_wrap( int kX, int const kLowerBound, int const kUpperBound )
496{
497 int range_size = kUpperBound - kLowerBound + 1;
498
499 if ( kX < kLowerBound )
500 kX += range_size * ((kLowerBound - kX) / range_size + 1);
501
502 return kLowerBound + (kX - kLowerBound) % range_size;
503}
504
505inline void CLI_saveHistory( char *buff )
506{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…