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 | b2ae5b197ef3c9753e044f98d7973829d4848dba (patch) | |
tree | 0aab391e034d9f14ce3c721ca9f25bfc6395c9fc /stdafx.h | |
parent | 498ccae27af050c66dfa70e9017eb45cefaf99ae (diff) | |
download | openttd-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.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 |