summaryrefslogtreecommitdiff
path: root/py/runtime.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-07-14 22:56:52 +1000
committerDamien George <damien@micropython.org>2021-07-15 00:12:41 +1000
commit38a204ed9605a9233a66c86538562fab821ce63a (patch)
tree70786960922fad8c89ccf1e3e914ca88cf75a030 /py/runtime.h
parentbb00125aaac8376b8cc4c8f3da2423fcf6dae496 (diff)
py: Introduce and use mp_raise_type_arg helper.
To reduce code size. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/runtime.h')
-rw-r--r--py/runtime.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/runtime.h b/py/runtime.h
index 8484479a5..f0d41f38d 100644
--- a/py/runtime.h
+++ b/py/runtime.h
@@ -184,6 +184,7 @@ NORETURN void mp_raise_TypeError(mp_rom_error_text_t msg);
NORETURN void mp_raise_NotImplementedError(mp_rom_error_text_t msg);
#endif
+NORETURN void mp_raise_type_arg(const mp_obj_type_t *exc_type, mp_obj_t arg);
NORETURN void mp_raise_StopIteration(mp_obj_t arg);
NORETURN void mp_raise_OSError(int errno_);
NORETURN void mp_raise_recursion_depth(void);