py/objproperty: Fix static struct to build with OBJ_REPR_D.

This commit is contained in:
Damien George 2016-01-15 11:09:20 +00:00
parent f8ba2eca80
commit ff133cdb07
1 changed files with 4 additions and 4 deletions

View File

@ -40,10 +40,10 @@ typedef struct _mp_obj_property_t {
STATIC mp_obj_t property_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
enum { ARG_fget, ARG_fset, ARG_fdel, ARG_doc };
static const mp_arg_t allowed_args[] = {
{ MP_QSTR_, MP_ARG_OBJ, {.u_rom_obj = mp_const_none} },
{ MP_QSTR_, MP_ARG_OBJ, {.u_rom_obj = mp_const_none} },
{ MP_QSTR_, MP_ARG_OBJ, {.u_rom_obj = mp_const_none} },
{ MP_QSTR_doc, MP_ARG_OBJ, {.u_rom_obj = mp_const_none} },
{ MP_QSTR_, MP_ARG_OBJ, {.u_rom_obj = MP_ROM_PTR(&mp_const_none_obj)} },
{ MP_QSTR_, MP_ARG_OBJ, {.u_rom_obj = MP_ROM_PTR(&mp_const_none_obj)} },
{ MP_QSTR_, MP_ARG_OBJ, {.u_rom_obj = MP_ROM_PTR(&mp_const_none_obj)} },
{ MP_QSTR_doc, MP_ARG_OBJ, {.u_rom_obj = MP_ROM_PTR(&mp_const_none_obj)} },
};
mp_arg_val_t vals[MP_ARRAY_SIZE(allowed_args)];
mp_arg_parse_all_kw_array(n_args, n_kw, args, MP_ARRAY_SIZE(allowed_args), allowed_args, vals);