summaryrefslogtreecommitdiff
path: root/py/stackctrl.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-02-24 15:13:07 +0100
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-02-24 15:13:07 +0100
commit12fa5b3a66d6f0034113a56c7d647c7bac5be74c (patch)
treecc4d5103421f930b7ebaa20eb7d6c8d59c6b6f0d /py/stackctrl.c
parentefd429464ed82c78fd2e11244a803c7ec2cb2211 (diff)
Switch exception throwing to mp_raise helpers. It saves a little code space each time to share the call.
Diffstat (limited to 'py/stackctrl.c')
-rw-r--r--py/stackctrl.c4
1 files changed, 2 insertions, 2 deletions
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) {