cutes/mathext.h

10 lines
253 B
C

#ifndef CUTES_MATHEXT_H
#define CUTES_MATHEXT_H
#define MIN(x__, min__) (((x__)<=(min__))?(min__):(x__))
#define MAX(x__, max__) (((x__)>=(max__))?(max__):(x__))
#define CLAMP(x__, min__, max__) MIN(MAX(x__, max__), min__)
#endif // !CUTES_MATHEXT_H