summaryrefslogtreecommitdiff
path: root/py/stackctrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/stackctrl.c')
-rw-r--r--py/stackctrl.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/py/stackctrl.c b/py/stackctrl.c
index b4ec15b0d..46cbefc8c 100644
--- a/py/stackctrl.c
+++ b/py/stackctrl.c
@@ -52,13 +52,9 @@ void mp_stack_set_limit(mp_uint_t limit) {
MP_STATE_THREAD(stack_limit) = limit;
}
-void mp_exc_recursion_depth(void) {
- mp_raise_RuntimeError("maximum recursion depth exceeded");
-}
-
void mp_stack_check(void) {
if (mp_stack_usage() >= MP_STATE_THREAD(stack_limit)) {
- mp_exc_recursion_depth();
+ mp_raise_recursion_depth();
}
}