Revert parts of previous commit that made clang unhappy

This commit is contained in:
Behdad Esfahbod 2018-11-10 20:10:03 -05:00
parent 1d66cdcf77
commit a953b64750

View File

@ -110,7 +110,7 @@ static inline Type& StructAfter(TObject &X)
static const unsigned int min_size = (size) static const unsigned int min_size = (size)
#define DEFINE_SIZE_ARRAY(size, array) \ #define DEFINE_SIZE_ARRAY(size, array) \
DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + VAR * (array).item_size); \ DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + VAR * sizeof ((array)[0])); \
DEFINE_COMPILES_ASSERTION ((void) (array)[0].static_size) \ DEFINE_COMPILES_ASSERTION ((void) (array)[0].static_size) \
enum { min_size = (size) } enum { min_size = (size) }