From 12fa5b3a66d6f0034113a56c7d647c7bac5be74c Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Fri, 24 Feb 2017 15:13:07 +0100 Subject: Switch exception throwing to mp_raise helpers. It saves a little code space each time to share the call. --- py/stackctrl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'py/stackctrl.c') diff --git a/py/stackctrl.c b/py/stackctrl.c index 1843e7339..c3ad7b21a 100644 --- a/py/stackctrl.c +++ b/py/stackctrl.c @@ -52,8 +52,8 @@ void mp_stack_set_limit(mp_uint_t limit) { } void mp_exc_recursion_depth(void) { - nlr_raise(mp_obj_new_exception_arg1(&mp_type_RuntimeError, - MP_OBJ_NEW_QSTR(MP_QSTR_maximum_space_recursion_space_depth_space_exceeded))); + mp_raise_RuntimeError( + MP_OBJ_NEW_QSTR(MP_QSTR_maximum_space_recursion_space_depth_space_exceeded)); } void mp_stack_check(void) { -- cgit v1.2.3