diff options
author | Damien George <damien.p.george@gmail.com> | 2017-11-29 15:43:40 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-11-29 15:43:40 +1100 |
commit | 3990a52c0f071a7a48cc276f30785930f31eed39 (patch) | |
tree | cf50860bed72e2e332cffd2990aef5d970360370 /py/stackctrl.c | |
parent | b369c1bb9601f83761257d9ba47adef5cbb9ea7b (diff) | |
download | micropython-3990a52c0f071a7a48cc276f30785930f31eed39.tar.gz micropython-3990a52c0f071a7a48cc276f30785930f31eed39.zip |
py: Annotate func defs with NORETURN when their corresp decls have it.
Diffstat (limited to 'py/stackctrl.c')
-rw-r--r-- | py/stackctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/stackctrl.c b/py/stackctrl.c index 7cd35fee23..11165b9a6f 100644 --- a/py/stackctrl.c +++ b/py/stackctrl.c @@ -48,7 +48,7 @@ void mp_stack_set_limit(mp_uint_t limit) { MP_STATE_THREAD(stack_limit) = limit; } -void mp_exc_recursion_depth(void) { +NORETURN 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))); } |