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
994ff738
Commit
994ff738
authored
Nov 17, 2015
by
Damien George
Browse files
py/mpstate: Make mp_pending_exception volatile.
It can change asynchronously.
parent
a24eafac
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/mpstate.h
View file @
994ff738
...
@@ -105,7 +105,7 @@ typedef struct _mp_state_vm_t {
...
@@ -105,7 +105,7 @@ typedef struct _mp_state_vm_t {
mp_map_t
mp_loaded_modules_map
;
mp_map_t
mp_loaded_modules_map
;
// pending exception object (MP_OBJ_NULL if not pending)
// pending exception object (MP_OBJ_NULL if not pending)
mp_obj_t
mp_pending_exception
;
volatile
mp_obj_t
mp_pending_exception
;
// current exception being handled, for sys.exc_info()
// current exception being handled, for sys.exc_info()
#if MICROPY_PY_SYS_EXC_INFO
#if MICROPY_PY_SYS_EXC_INFO
...
...
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