From f325bd848b183f9b111b44e2fab2a9e6a366af3c Mon Sep 17 00:00:00 2001 From: Matt Wozniski Date: Thu, 9 May 2019 03:20:15 -0400 Subject: 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. --- py/runtime.h | 1 + 1 file changed, 1 insertion(+) (limited to 'py/runtime.h') 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); -- cgit v1.2.3