diff options
author | tron <tron@openttd.org> | 2005-02-06 13:41:02 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-06 13:41:02 +0000 |
commit | 59fa465dce1b9a09514ae2d6255a611ec2fea9d9 (patch) | |
tree | 0aab391e034d9f14ce3c721ca9f25bfc6395c9fc /stdafx.h | |
parent | bcf4b3b913158c077ba505f5617daa55769416a9 (diff) | |
download | openttd-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |