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
0997af93
Commit
0997af93
authored
Mar 30, 2014
by
Damien George
Browse files
py: Don't wrap necessary function calls in assert.
parent
0aa43795
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objgenerator.c
View file @
0997af93
...
...
@@ -30,7 +30,9 @@ STATIC mp_obj_t gen_wrap_call(mp_obj_t self_in, uint n_args, uint n_kw, const mp
const
mp_obj_t
*
args1
,
*
args2
;
uint
len1
,
len2
;
assert
(
mp_obj_fun_prepare_simple_args
(
self_fun
,
n_args
,
n_kw
,
args
,
&
len1
,
&
args1
,
&
len2
,
&
args2
));
if
(
!
mp_obj_fun_prepare_simple_args
(
self_fun
,
n_args
,
n_kw
,
args
,
&
len1
,
&
args1
,
&
len2
,
&
args2
))
{
assert
(
0
);
}
return
mp_obj_new_gen_instance
(
bc_code
,
len1
,
args1
,
len2
,
args2
);
}
...
...
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