JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
We now limit how far ahead you can get. This is measured in screen
[vor.git] / common.h
diff --git a/common.h b/common.h
new file mode 100644 (file)
index 0000000..ac9d87e
--- /dev/null
+++ b/common.h
@@ -0,0 +1,28 @@
+#ifndef VOR_COMMON_H
+#define VOR_COMMON_H
+
+#ifndef NULL
+#define NULL 0
+#endif
+
+#ifndef true
+#define true 1
+#endif
+
+#ifndef false
+#define false 0
+#endif
+
+#ifndef max
+#define max(a, b) ((a) > (b) ? (a) : (b))
+#endif
+
+#ifndef min
+#define min(a, b) ((a) < (b) ? (a) : (b))
+#endif
+
+#ifndef abs
+#define abs(a) ((a)<=0 ? -(a) : (a))
+#endif
+
+#endif // VOR_COMMON_H