MIN|MAX macro
Karel Miko
7 years ago
17 | 17 |
#include <tommath.h>
|
18 | 18 |
#include <ctype.h>
|
19 | 19 |
|
|
20 |
#ifndef MIN
|
20 | 21 |
#define MIN(x,y) (((x) < (y)) ? (x) : (y))
|
|
22 |
#endif
|
21 | 23 |
|
|
24 |
#ifndef MAX
|
22 | 25 |
#define MAX(x,y) (((x) > (y)) ? (x) : (y))
|
|
26 |
#endif
|
23 | 27 |
|
24 | 28 |
#ifdef __cplusplus
|
25 | 29 |
extern "C" {
|