diff options
| author | Matt Wozniski <godlygeek+git@gmail.com> | 2019-05-09 03:20:15 -0400 |
|---|---|---|
| committer | Matt Wozniski <godlygeek+git@gmail.com> | 2019-05-09 03:22:26 -0400 |
| commit | f325bd848b183f9b111b44e2fab2a9e6a366af3c (patch) | |
| tree | 91f4985dc95eaa074de8d3d53d2dd3f22c2f9e7a /py/runtime.h | |
| parent | 095c844004bcd8680a4bf68901adbd9cac6a4302 (diff) | |
Use OverflowError exception type for overflows
Initially I used one of the existing exception raise functions, but it's
more correct and not much more code to raise OverflowError instead.
Diffstat (limited to 'py/runtime.h')
| -rw-r--r-- | py/runtime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/runtime.h b/py/runtime.h index c5a94b0b1..e8398cf0e 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -163,6 +163,7 @@ NORETURN void mp_raise_OSError_msg(const compressed_string_t *msg); NORETURN void mp_raise_OSError_msg_varg(const compressed_string_t *fmt, ...); NORETURN void mp_raise_NotImplementedError(const compressed_string_t *msg); NORETURN void mp_raise_NotImplementedError_varg(const compressed_string_t *fmt, ...); +NORETURN void mp_raise_OverflowError_varg(const compressed_string_t *fmt, ...); NORETURN void mp_raise_MpyError(const compressed_string_t *msg); NORETURN void mp_raise_recursion_depth(void); |
