diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-01-19 12:38:49 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-01-19 12:38:49 +0000 |
| commit | 136b149e417314e5ad46b3ee78b811df57e74f41 (patch) | |
| tree | 203a941101aae04a8e20028c5301286da5ba87b4 /py/obj.h | |
| parent | 49f6a99c65943c6b040e7237f7b86cbe184826c0 (diff) | |
py: Add full traceback to exception printing.
Diffstat (limited to 'py/obj.h')
| -rw-r--r-- | py/obj.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -236,6 +236,7 @@ const char *mp_obj_get_type_str(mp_obj_t o_in); void mp_obj_print_helper(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t o_in, mp_print_kind_t kind); void mp_obj_print(mp_obj_t o, mp_print_kind_t kind); +void mp_obj_print_exception(mp_obj_t exc); bool mp_obj_is_callable(mp_obj_t o_in); machine_int_t mp_obj_hash(mp_obj_t o_in); @@ -273,8 +274,8 @@ machine_int_t mp_obj_int_get_checked(mp_obj_t self_in); // exception extern const mp_obj_type_t exception_type; qstr mp_obj_exception_get_type(mp_obj_t self_in); -void mp_obj_exception_set_source_info(mp_obj_t self_in, qstr file, machine_uint_t line, qstr block); -void mp_obj_exception_get_source_info(mp_obj_t self_in, qstr *file, machine_uint_t *line, qstr *block); +void mp_obj_exception_add_traceback(mp_obj_t self_in, qstr file, machine_uint_t line, qstr block); +void mp_obj_exception_get_traceback(mp_obj_t self_in, machine_uint_t *n, machine_uint_t **values); // str extern const mp_obj_type_t str_type; |
