diff pytouhou/ui/opengl/backend.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 73f134f84c7f
children 80687f258001
line wrap: on
line diff
--- a/pytouhou/ui/opengl/backend.pyx
+++ b/pytouhou/ui/opengl/backend.pyx
@@ -46,7 +46,7 @@ def init(options):
     from pytouhou.ui.opengl.gamerenderer import GameRenderer
 
 
-cdef void discover_features() except *:
+cdef bint discover_features() except True:
     '''Discover which features are supported by our context.'''
 
     global use_debug_group, use_vao, use_primitive_restart, use_framebuffer_blit, use_pack_invert, use_scaled_rendering