stdafx.h
changeset 1317 f382f1b439c7
parent 1022 9ea8ee93d6a9
child 1721 64d59b181596
--- a/stdafx.h	Sun Feb 06 11:23:41 2005 +0000
+++ b/stdafx.h	Sun Feb 06 13:41:02 2005 +0000
@@ -214,6 +214,7 @@
 
 #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