diff pytouhou/game/bullet.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 3c2f96f1d715
children
line wrap: on
line diff
--- a/pytouhou/game/bullet.pxd
+++ b/pytouhou/game/bullet.pxd
@@ -24,7 +24,7 @@ cdef class Bullet(Element):
 
     cdef bint is_visible(self, unsigned int screen_width, unsigned int screen_height) nogil
     cpdef set_anim(self, sprite_idx_offset=*)
-    cdef void launch(self) except *
-    cdef void collide(self) except *
-    cdef void cancel(self) except *
-    cdef void update(self) except *
+    cdef bint launch(self) except True
+    cdef bint collide(self) except True
+    cdef bint cancel(self) except True
+    cdef bint update(self) except True