diff options
Diffstat (limited to 'macros.h')
-rw-r--r-- | macros.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,6 +1,9 @@ #ifndef MACROS_H #define MACROS_H +#define min(a, b) (((a) < (b)) ? (a) : (b)) +#define max(a, b) (((a) > (b)) ? (a) : (b)) + #define const_strlen(str) sizeof((char []){str}) #ifndef LOG_H |