got nonbinary partitioning working yippie
This commit is contained in:
parent
6b5bcff1a4
commit
330755591b
6 changed files with 170 additions and 57 deletions
12
cursetree/util.h
Normal file
12
cursetree/util.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#ifndef CURSETREE_UTIL_H
|
||||
#define CURSETREE_UTIL_H
|
||||
|
||||
static inline int clampi(int val, int min, int max) {
|
||||
if (val > max)
|
||||
return max;
|
||||
else if (val < min)
|
||||
return min;
|
||||
return val;
|
||||
}
|
||||
|
||||
#endif /* CURSETREE_UTIL_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue