catacomb-python.h: Add a macro for raising `OverflowError'.
[catacomb-python] / catacomb-python.h
index b1120fa..ad27461 100644 (file)
   goto end;                                                            \
 } while (0)
 #define VALERR(str) EXCERR(PyExc_ValueError, str)
+#define OVFERR(str) EXCERR(PyExc_OverflowError, str)
 #define TYERR(str) EXCERR(PyExc_TypeError, str)
 #define ZDIVERR(str) EXCERR(PyExc_ZeroDivisionError, str)
 #define SYSERR(str) EXCERR(PyExc_SystemError, str)