diff options
Diffstat (limited to 'macros.h')
-rw-r--r-- | macros.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 */ |