diff options
author | Damien George <damien.p.george@gmail.com> | 2020-02-06 01:05:47 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-02-07 16:08:20 +1100 |
commit | 98a3911c430b0cc96e1821d7ca589b9be3355fc3 (patch) | |
tree | 1182ab05b8366c85f40700548bd003d2a6bd3597 /py/runtime.h | |
parent | 7a5752a7489f6be1c7307455b33119888392a09d (diff) |
py/scheduler: Add "raise_exc" argument to mp_handle_pending.
Previous behaviour is when this argument is set to "true", in which case
the function will raise any pending exception. Setting it to "false" will
cancel any pending exception.
Diffstat (limited to 'py/runtime.h')
-rw-r--r-- | py/runtime.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/runtime.h b/py/runtime.h index b54b17b68..1c078ae81 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -64,7 +64,7 @@ extern const byte mp_binary_op_method_name[]; void mp_init(void); void mp_deinit(void); -void mp_handle_pending(void); +void mp_handle_pending(bool raise_exc); void mp_handle_pending_tail(mp_uint_t atomic_state); #if MICROPY_ENABLE_SCHEDULER |