Article ID: 116170
Article Last Modified on 7/5/2005
/* Compile options needed: none
*/
#include <stddef.h>
#define ZIP struct zip_struct
#define ZOT struct zot_struct
#define TABLE struct table_struct
ZIP
{
ZOT
{
int num;
} m_zot;
};
#define MACRO(tok) \
{ (offsetof(ZIP, m_zot.tok) - offsetof(ZIP, m_zot)) / sizeof(int) }
TABLE
{
int Offset;
int ModNum;
};
TABLE test[] = { { offsetof(ZIP, m_zot.num) - offsetof(ZIP, m_zot)
/ sizeof(int) } };
TABLE test2[] = { { MACRO(num) } };
void main(void)
{
}
Additional query words: kbVC400bug 8.00 8.00c 9.00 10.00 10.10 10.20
Keywords: kbbug kbfix kbvc600fix KB116170