diff pytouhou/ui/window.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 80687f258001
line wrap: on
line diff
--- a/pytouhou/ui/window.pxd
+++ b/pytouhou/ui/window.pxd
@@ -7,14 +7,14 @@ cdef class Clock:
     cdef double fps
 
     cdef void set_target_fps(self, long fps) nogil
-    cdef void tick(self) nogil except *
+    cdef bint tick(self) nogil except True
 
 
 cdef class Runner:
     cdef long width, height
 
-    cdef void start(self) except *
-    cdef void finish(self) except *
+    cdef bint start(self) except True
+    cdef bint finish(self) except True
     cpdef bint update(self, bint render) except -1