diff pytouhou/game/bullet.pxd @ 606:3c2f96f1d715

Fix compilation under Cython 0.22, by making the pyx and the pxd declarations’ except clause similar.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 26 Nov 2014 13:36:38 +0100
parents 887de1309491
children a6af3ff86612
line wrap: on
line diff
--- a/pytouhou/game/bullet.pxd
+++ b/pytouhou/game/bullet.pxd
@@ -22,7 +22,7 @@ cdef class Bullet(Element):
     cdef Game _game
     cdef long player
 
-    cdef bint is_visible(self, unsigned int screen_width, unsigned int screen_height) except? False
+    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 *