summaryrefslogtreecommitdiff
path: root/py/stackctrl.c
diff options
context:
space:
mode:
authorhathach <thach@tinyusb.org>2018-08-01 00:58:23 +0700
committerhathach <thach@tinyusb.org>2018-08-01 00:58:23 +0700
commit1e524f1b9800b4d734e0c3db0fb6434176c4d7a8 (patch)
tree06a6ffe912cb65d1bb78974d35f6b9eba3800c2a /py/stackctrl.c
parent20c25f61d92cfde9f259ee06ee47915e7a3ea3c5 (diff)
parentbf033123a7fa75394fd7a01d17ec99afd9abe645 (diff)
Merge branch 'master' into nrf52840_usb_hid
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();
}
}