Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
0ae518fb
Commit
0ae518fb
authored
Mar 30, 2014
by
Paul Sokolovsky
Browse files
mp_obj_print_exception(): Assert that traceback has sane number of entries.
parent
89f94b51
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/obj.c
View file @
0ae518fb
...
...
@@ -52,6 +52,7 @@ void mp_obj_print_exception(mp_obj_t exc) {
machine_uint_t
n
,
*
values
;
mp_obj_exception_get_traceback
(
exc
,
&
n
,
&
values
);
if
(
n
>
0
)
{
assert
(
n
%
3
==
0
);
printf
(
"Traceback (most recent call last):
\n
"
);
for
(
int
i
=
n
-
3
;
i
>=
0
;
i
-=
3
)
{
#if MICROPY_ENABLE_SOURCE_LINE
...
...
Write
Preview
Supports
Markdown
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