summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-23 10:56:02 +0000
committerrubidium <rubidium@openttd.org>2007-12-23 10:56:02 +0000
commita773d45885eac803e794c622a4dfae3f03cc5cb1 (patch)
tree38db428e795daef4055965543d541fc03dc4b9d8 /src/stdafx.h
parent82d240e300e6fb01b79a90c5948942466b6a442d (diff)
downloadopenttd-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.h6
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 */