summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--macros.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/macros.h b/macros.h
index 2be1d6b..14e7da0 100644
--- a/macros.h
+++ b/macros.h
@@ -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