diff options
author | Damien George <damien.p.george@gmail.com> | 2014-09-24 14:05:40 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-09-25 15:49:26 +0100 |
commit | 4bcd04bcaddeeb53779f2c067a4d1b533c888f9d (patch) | |
tree | 4207ca05d97dabf326c0a22d17e976767657bb13 /py/obj.h | |
parent | 16ef60fba6b8517bf6b6f71c19ae6baa44a3f9af (diff) |
py: Tidy up exception matching; allow matching of tuple of exceptions.
Addresses issue #864.
Diffstat (limited to 'py/obj.h')
-rw-r--r-- | py/obj.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -458,7 +458,7 @@ mp_int_t mp_obj_int_get_checked(mp_const_obj_t self_in); #define mp_obj_is_native_exception_instance(o) (mp_obj_get_type(o)->make_new == mp_obj_exception_make_new) bool mp_obj_is_exception_type(mp_obj_t self_in); bool mp_obj_is_exception_instance(mp_obj_t self_in); -bool mp_obj_exception_match(mp_obj_t exc, const mp_obj_type_t *exc_type); +bool mp_obj_exception_match(mp_obj_t exc, mp_const_obj_t exc_type); void mp_obj_exception_clear_traceback(mp_obj_t self_in); void mp_obj_exception_add_traceback(mp_obj_t self_in, qstr file, mp_uint_t line, qstr block); void mp_obj_exception_get_traceback(mp_obj_t self_in, mp_uint_t *n, mp_uint_t **values); |