aboutsummaryrefslogtreecommitdiff
path: root/include/util.h
blob: 8e65e6d61157f779c7c9f99f6b4f4685620f77cd (plain)
1
2
3
4
5
6
7
8
9
#ifndef _SWAY_UTIL_H
#define _SWAY_UTIL_H

/**
 * Wrap i into the range [0, max[
 */
int wrap(int i, int max);

#endif