Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
d6f27fe3
Commit
d6f27fe3
authored
Jan 10, 2014
by
Paul Sokolovsky
Browse files
mp_obj_equal(): Print which types' equality not implemented before assert().
parent
e06edce7
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/obj.c
View file @
d6f27fe3
...
...
@@ -116,6 +116,8 @@ bool mp_obj_equal(mp_obj_t o1, mp_obj_t o2) {
}
else
if
(
MP_OBJ_IS_TYPE
(
o1
,
&
str_type
)
&&
MP_OBJ_IS_TYPE
(
o2
,
&
str_type
))
{
return
mp_obj_str_get
(
o1
)
==
mp_obj_str_get
(
o2
);
}
else
{
// TODO: Debugging helper
printf
(
"Equality for '%s' and '%s' types not yet implemented
\n
"
,
mp_obj_get_type_str
(
o1
),
mp_obj_get_type_str
(
o2
));
assert
(
0
);
return
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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