py: implement some basic exception matching.

This commit is contained in:
Damien
2013-12-29 17:17:43 +00:00
parent 8f9e2ee157
commit b86e3f9293
5 changed files with 38 additions and 6 deletions

View File

@@ -176,6 +176,10 @@ extern const mp_obj_type_t bool_type;
mp_obj_t mp_obj_cell_get(mp_obj_t self_in);
void mp_obj_cell_set(mp_obj_t self_in, mp_obj_t obj);
// exception
extern const mp_obj_type_t exception_type;
qstr mp_obj_exception_get_type(mp_obj_t self_in);
// str
extern const mp_obj_type_t str_type;
qstr mp_obj_str_get(mp_obj_t self_in);