diff pytouhou/ui/opengl/background.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 a6a191e371c7
children
line wrap: on
line diff
--- a/pytouhou/ui/opengl/background.pxd
+++ b/pytouhou/ui/opengl/background.pxd
@@ -20,4 +20,4 @@ cdef class BackgroundRenderer:
 
     cdef void set_state(self) nogil
     cdef void render_background(self) nogil
-    cdef void load(self, background, GLuint[MAX_TEXTURES] textures) except *
+    cdef bint load(self, background, GLuint[MAX_TEXTURES] textures) except True