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
commitb2ae5b197ef3c9753e044f98d7973829d4848dba (patch)
tree0aab391e034d9f14ce3c721ca9f25bfc6395c9fc /stdafx.h
parent498ccae27af050c66dfa70e9017eb45cefaf99ae (diff)
downloadopenttd-b2ae5b197ef3c9753e044f98d7973829d4848dba.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