comparison 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
comparison
equal deleted inserted replaced
616:4ce3ef053a25 617:a6af3ff86612
22 cdef Game _game 22 cdef Game _game
23 cdef long player 23 cdef long player
24 24
25 cdef bint is_visible(self, unsigned int screen_width, unsigned int screen_height) nogil 25 cdef bint is_visible(self, unsigned int screen_width, unsigned int screen_height) nogil
26 cpdef set_anim(self, sprite_idx_offset=*) 26 cpdef set_anim(self, sprite_idx_offset=*)
27 cdef void launch(self) except * 27 cdef bint launch(self) except True
28 cdef void collide(self) except * 28 cdef bint collide(self) except True
29 cdef void cancel(self) except * 29 cdef bint cancel(self) except True
30 cdef void update(self) except * 30 cdef bint update(self) except True