ICU-2015 add header vtable check per review

X-SVN-Rev: 10363
This commit is contained in:
Alan Liu 2002-11-23 01:09:39 +00:00
parent dc7dc3cb9f
commit 97a528130e

View file

@ -667,6 +667,9 @@ void Builder::computeOffsets() {
printf("header \t offset=%4d size=%5d\n", 0, off);
}
// PropertyAliases must have no v-table and must be
// padded (if necessary) to the next 32-bit boundary.
U_ASSERT(offsetof(PropertyAliases, enumToName_offset) == 0);
U_ASSERT(sizeof(header) % sizeof(int32_t) == 0);
#define COMPUTE_OFFSET(foo) COMPUTE_OFFSET2(foo,int32_t)