summaryrefslogtreecommitdiff
path: root/stdafx.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-06 13:41:02 +0000
committertron <tron@openttd.org>2005-02-06 13:41:02 +0000
commit59fa465dce1b9a09514ae2d6255a611ec2fea9d9 (patch)
tree0aab391e034d9f14ce3c721ca9f25bfc6395c9fc /stdafx.h
parentbcf4b3b913158c077ba505f5617daa55769416a9 (diff)
downloadopenttd-59fa465dce1b9a09514ae2d6255a611ec2fea9d9.tar.xz
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
Diffstat (limited to 'stdafx.h')
-rw-r--r--stdafx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/stdafx.h b/stdafx.h
index 8fbc51b1d..982c71cf4 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -214,6 +214,7 @@ assert_compile(sizeof(uint8) == 1);
#define lengthof(x) (sizeof(x)/sizeof(x[0]))
#define endof(x) (&x[lengthof(x)])
+#define lastof(x) (&x[lengthof(x) - 1])
#ifndef offsetof
#define offsetof(s,m) (size_t)&(((s *)0)->m)
#endif