Mercurial > touhou
diff pytouhou/ui/window.pyx @ 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 | 80687f258001 |
line wrap: on
line diff
--- a/pytouhou/ui/window.pyx +++ b/pytouhou/ui/window.pyx @@ -33,7 +33,7 @@ cdef class Clock: @cython.cdivision(True) - cdef void tick(self) nogil except *: + cdef bint tick(self) nogil except True: current = sdl.get_ticks() if not self._ref_tick: @@ -65,10 +65,10 @@ cdef class Clock: cdef class Runner: - cdef void start(self) except *: + cdef bint start(self) except True: pass - cdef void finish(self) except *: + cdef bint finish(self) except True: pass cpdef bint update(self, bint render) except -1: