macros.h
changeset 4300 687a17c9c557
parent 4274 bd088a325923
child 4834 ddcf440d0ffd
--- a/macros.h	Sat Aug 19 09:31:22 2006 +0000
+++ b/macros.h	Sat Aug 19 10:00:30 2006 +0000
@@ -180,4 +180,10 @@
  */
 #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 */