Mercurial > touhou
diff pytouhou/ui/opengl/renderer.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 | 6c9d8a3d853f |
children | ec972eb44391 |
line wrap: on
line diff
--- a/pytouhou/ui/opengl/renderer.pxd +++ b/pytouhou/ui/opengl/renderer.pxd @@ -35,5 +35,5 @@ cdef class Renderer: cdef PyObject *elements[640*3] cdef void set_state(self) nogil - cdef void render_elements(self, elements) except * - cdef void render_quads(self, rects, colors, GLuint texture) except * + cdef bint render_elements(self, elements) except True + cdef bint render_quads(self, rects, colors, GLuint texture) except True