summaryrefslogtreecommitdiff
path: root/py/stackctrl.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2018-07-11 16:45:30 -0400
committerDan Halbert <halbert@halwitz.org>2018-07-11 16:45:30 -0400
commit7c219600a246d8956d0b23ea3f5d125a820e6b6a (patch)
tree4cf793a66284322d48a8f430815c31cd1c9ffa1d /py/stackctrl.c
parent4962468ffffac9ec4e36b2b1fc3f132516df3127 (diff)
parent25ae98f07cb3c4488cb955403dfe56b8bb8db6f0 (diff)
WIP: after merge; before testing
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();
}
}