summaryrefslogtreecommitdiff
path: root/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'macros.h')
-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