Minor
This commit is contained in:
parent
e5d954a2fb
commit
8cfeed9948
|
@ -107,12 +107,12 @@ static inline Type& StructAfter(TObject &X)
|
||||||
DEFINE_COMPILES_ASSERTION ((void) this->u._member.static_size); \
|
DEFINE_COMPILES_ASSERTION ((void) this->u._member.static_size); \
|
||||||
DEFINE_INSTANCE_ASSERTION (alignof (*this) == 1 && \
|
DEFINE_INSTANCE_ASSERTION (alignof (*this) == 1 && \
|
||||||
sizeof(this->u._member) == (size)); \
|
sizeof(this->u._member) == (size)); \
|
||||||
static const unsigned int min_size = (size)
|
enum { min_size = (size) }
|
||||||
|
|
||||||
#define DEFINE_SIZE_MIN(size) \
|
#define DEFINE_SIZE_MIN(size) \
|
||||||
DEFINE_INSTANCE_ASSERTION (alignof (*this) == 1 && \
|
DEFINE_INSTANCE_ASSERTION (alignof (*this) == 1 && \
|
||||||
sizeof (*this) >= (size)); \
|
sizeof (*this) >= (size)); \
|
||||||
static const unsigned int min_size = (size)
|
enum { min_size = (size) }
|
||||||
|
|
||||||
#define DEFINE_SIZE_ARRAY(size, array) \
|
#define DEFINE_SIZE_ARRAY(size, array) \
|
||||||
DEFINE_COMPILES_ASSERTION ((void) (array)[0].static_size); \
|
DEFINE_COMPILES_ASSERTION ((void) (array)[0].static_size); \
|
||||||
|
|
Loading…
Reference in New Issue