Skip to content
fn

checked_axis

int checked_axis(const char * op, int id, int extent, const char * msg)

Wrap a signed index against extent and refuse anything still outside [0, extent).