aboutsummaryrefslogtreecommitdiff
path: root/src/include/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/util.h')
-rw-r--r--src/include/util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/util.h b/src/include/util.h
index 839d3e4..9f8a2b0 100644
--- a/src/include/util.h
+++ b/src/include/util.h
@@ -6,6 +6,13 @@
#include <string.h>
#include <stdio.h>
+#define MIN(a, b) (a < b ? a : b)
+#define MAX(a, b) (a > b ? a : b)
+
+/*
+ TODO: Make these macros, to allow for better logging (printing __FILE__,
+ __func__, etc.)
+*/
/* Log some debug information. */
void log_dbg(const char*, ...);
/* c: */