diff pytouhou/game/item.pxd @ 617:a6af3ff86612

Change all “void except *” function into “bint except True”, to prevent PyErr_Occurred() from being called at each call.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 29 Mar 2015 00:08:20 +0100
parents 3d3285918ba1
children
line wrap: on
line diff
--- a/pytouhou/game/item.pxd
+++ b/pytouhou/game/item.pxd
@@ -23,6 +23,6 @@ cdef class Item(Element):
     cdef Indicator indicator
     cdef Interpolator speed_interpolator, pos_interpolator
 
-    cdef void autocollect(self, Player player) except *
-    cdef void on_collect(self, Player player) except *
+    cdef bint autocollect(self, Player player) except True
+    cdef bint on_collect(self, Player player) except True
     cpdef update(self)