fixed _tsizeof

pull/1/head
Heiko Hund 2009-05-16 01:50:10 +00:00
parent 56e73300e5
commit 5b4f77a4a3
1 changed files with 2 additions and 6 deletions

8
main.h
View File

@ -63,12 +63,8 @@ struct security_attributes
SECURITY_DESCRIPTOR sd;
};
/* Return the number of elements in an TCHAR array */
static inline size_t
_tsizeof(TCHAR x[])
{
return (sizeof(x) / sizeof(*x));
}
/* Return the number of elements in a TCHAR array */
#define _tsizeof(x) (sizeof(x) / sizeof(*x))
/* clear an object */
#define CLEAR(x) memset(&(x), 0, sizeof(x))