comparison pytouhou/game/text.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 e15672733c93
children
comparison
equal deleted inserted replaced
616:4ce3ef053a25 617:a6af3ff86612
37 37
38 cpdef set_text(self, text) 38 cpdef set_text(self, text)
39 #def timeout_update(self) 39 #def timeout_update(self)
40 #def move_timeout_update(self) 40 #def move_timeout_update(self)
41 #def fadeout_timeout_update(self) 41 #def fadeout_timeout_update(self)
42 cdef void fade(self, unsigned long duration, unsigned char alpha, formula=*) except * 42 cdef bint fade(self, unsigned long duration, unsigned char alpha, formula=*) except True
43 cpdef set_timeout(self, unsigned long timeout, str effect=*, unsigned long duration=*, unsigned long start=*) 43 cpdef set_timeout(self, unsigned long timeout, str effect=*, unsigned long duration=*, unsigned long start=*)
44 44
45 45
46 cdef class Counter(GlyphCollection): 46 cdef class Counter(GlyphCollection):
47 cdef long value 47 cdef long value
77 #def timeout_update(self) 77 #def timeout_update(self)
78 #def move_timeout_update(self) 78 #def move_timeout_update(self)
79 #def move_ex_timeout_update(self) 79 #def move_ex_timeout_update(self)
80 #def fadeout_timeout_update(self) 80 #def fadeout_timeout_update(self)
81 81
82 cdef void fade(self, unsigned long duration, unsigned char alpha, formula=*) except * 82 cdef bint fade(self, unsigned long duration, unsigned char alpha, formula=*) except True
83 cdef void move_in(self, unsigned long duration, double x, double y, formula=*) except * 83 cdef bint move_in(self, unsigned long duration, double x, double y, formula=*) except True
84 cpdef set_timeout(self, unsigned long timeout, str effect=*, unsigned long duration=*, unsigned long start=*, to=*, end=*) 84 cpdef set_timeout(self, unsigned long timeout, str effect=*, unsigned long duration=*, unsigned long start=*, to=*, end=*)