chiark
/
gitweb
/
~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d8413ac
)
catacomb-python.h: Add a macro for raising `OverflowError'.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 24 Nov 2019 14:59:35 +0000
(14:59 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 27 Nov 2019 15:10:44 +0000
(15:10 +0000)
catacomb-python.h
patch
|
blob
|
blame
|
history
diff --git
a/catacomb-python.h
b/catacomb-python.h
index b1120fa64b58c0812c4bbb2814e7824924005a3b..ad27461008a58b811aa48270aaf3b02c57451bdd 100644
(file)
--- a/
catacomb-python.h
+++ b/
catacomb-python.h
@@
-133,6
+133,7
@@
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)