Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
ff133cdb
Commit
ff133cdb
authored
Jan 15, 2016
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py/objproperty: Fix static struct to build with OBJ_REPR_D.
parent
f8ba2eca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
py/objproperty.c
py/objproperty.c
+4
-4
No files found.
py/objproperty.c
View file @
ff133cdb
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment