aboutsummaryrefslogtreecommitdiff
path: root/src/include/util.h
diff options
context:
space:
mode:
authorc2024-01-28 21:43:37 -0500
committerc2024-01-28 21:43:37 -0500
commitca20ff4f4d0ac63856e538f9f4cef97197bf6465 (patch)
treeba8886c8832e082332a284e3b18fb0e4bbce3d05 /src/include/util.h
parent422606d8b3cc6fba74f97af46f0378fc274d60ad (diff)
Fixed buffer-overflow.
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: */