cutes/mathext.h

10 lines
253 B
C
Raw Normal View History

2024-01-26 21:58:09 +00:00
#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