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
b051e7d1
Commit
b051e7d1
authored
Jan 23, 2014
by
Damien George
Browse files
py: Simpler implementation of mp_obj_callable.
parent
cfedd81c
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/obj.c
View file @
b051e7d1
...
...
@@ -66,12 +66,7 @@ void mp_obj_print_exception(mp_obj_t exc) {
}
bool
mp_obj_is_callable
(
mp_obj_t
o_in
)
{
if
(
!
MP_OBJ_IS_OBJ
(
o_in
))
{
return
false
;
}
else
{
mp_obj_base_t
*
o
=
o_in
;
return
o
->
type
->
call
!=
NULL
;
}
return
mp_obj_get_type
(
o_in
)
->
call
!=
NULL
;
}
machine_int_t
mp_obj_hash
(
mp_obj_t
o_in
)
{
...
...
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