Revision 6680f01c hw/hw.h

b/hw/hw.h
398 398
        + type_check_array(_type,typeof_field(_state, _field),_num)  \
399 399
}
400 400

  
401
#define VMSTATE_STRUCT_ARRAY_SIZE_UINT8(_field, _state, _field__num, _version, _vmsd, _type) { \
402
    .name       = (stringify(_field)),                               \
403
    .num_offset = offsetof(_state, _field_num)                       \
404
        + type_check(uint8_t,typeof_field(_state, _field_num)),       \
405
    .version_id = (_version),                                        \
406
    .vmsd       = &(_vmsd),                                          \
407
    .size       = sizeof(_type),                                     \
408
    .flags      = VMS_STRUCT|VMS_ARRAY,                              \
409
    .offset     = offsetof(_state, _field)                           \
410
        + type_check_array(_type,typeof_field(_state, _field),_num)  \
411
}
412

  
401 413
#define VMSTATE_STATIC_BUFFER(_field, _state, _version) {            \
402 414
    .name       = (stringify(_field)),                               \
403 415
    .version_id = (_version),                                        \

Also available in: Unified diff