diff pytouhou/ui/opengl/gamerenderer.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 1b31169dc344
children
line wrap: on
line diff
--- a/pytouhou/ui/opengl/gamerenderer.pxd
+++ b/pytouhou/ui/opengl/gamerenderer.pxd
@@ -14,6 +14,6 @@ cdef class GameRenderer(Renderer):
     cdef BackgroundRenderer background_renderer
     cdef object background
 
-    cdef void render_game(self, Game game) except *
-    cdef void render_text(self, dict texts) except *
-    cdef void render_interface(self, interface, game_boss) except *
+    cdef bint render_game(self, Game game) except True
+    cdef bint render_text(self, dict texts) except True
+    cdef bint render_interface(self, interface, game_boss) except True