diff options
author | rubidium <rubidium@openttd.org> | 2007-12-23 10:56:02 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-23 10:56:02 +0000 |
commit | a773d45885eac803e794c622a4dfae3f03cc5cb1 (patch) | |
tree | 38db428e795daef4055965543d541fc03dc4b9d8 /src/stdafx.h | |
parent | 82d240e300e6fb01b79a90c5948942466b6a442d (diff) | |
download | openttd-a773d45885eac803e794c622a4dfae3f03cc5cb1.tar.xz |
(svn r11684) -Codechange: split gfx.h in a type and functional header.
Diffstat (limited to 'src/stdafx.h')
-rw-r--r-- | src/stdafx.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stdafx.h b/src/stdafx.h index f3a277d5e..90bd721cd 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -374,4 +374,10 @@ assert_compile(sizeof(uint8) == 1); #define MAX_PATH 260 #endif +/** + * The largest value that can be entered in a variable + * @param type the type of the variable + */ +#define MAX_UVALUE(type) ((type)~(type)0) + #endif /* STDAFX_H */ |