summaryrefslogtreecommitdiff
path: root/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'macros.h')
-rw-r--r--macros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/macros.h b/macros.h
index 55007c594..f5c78cc35 100644
--- a/macros.h
+++ b/macros.h
@@ -180,4 +180,10 @@ static inline uint16 ReadLE16Unaligned(const void* x)
*/
#define ALIGN(x, n) (((x) + (n) - 1) & ~((n) - 1))
+/** return the largest value that can be entered in a variable.
+ * known to work for uint32.
+ * used by TGP to set the max value of the _patches.generation_seed in its definition
+ */
+#define MAX_UVALUE(type) ((type)~(type)0)
+
#endif /* MACROS_H */