Allow empty HB_VAR_ARRAY definition.  Though, doesn't compile with any
compiler I know of.
This commit is contained in:
Behdad Esfahbod 2019-10-31 13:19:44 -07:00
parent 1a1d64bc6f
commit 35218c488c
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ static inline Type& StructAfter(TObject &X)
#define DEFINE_SIZE_ARRAY(size, array) \
DEFINE_COMPILES_ASSERTION ((void) (array)[0].static_size) \
DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + HB_VAR_ARRAY * sizeof ((array)[0])) \
DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + (HB_VAR_ARRAY+0) * sizeof ((array)[0])) \
static constexpr unsigned null_size = (size); \
static constexpr unsigned min_size = (size)