Mercurial > touhou
comparison pytouhou/ui/opengl/texture.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 | dec43940f092 |
children |
comparison
equal
deleted
inserted
replaced
616:4ce3ef053a25 | 617:a6af3ff86612 |
---|---|
1 from pytouhou.lib.sdl cimport Font | 1 from pytouhou.lib.sdl cimport Font |
2 | 2 |
3 cdef class TextureManager: | 3 cdef class TextureManager: |
4 cdef object loader, renderer, texture_class | 4 cdef object loader, renderer, texture_class |
5 | 5 |
6 cdef void load(self, dict anms) except * | 6 cdef bint load(self, dict anms) except True |
7 | 7 |
8 cdef class FontManager: | 8 cdef class FontManager: |
9 cdef Font font | 9 cdef Font font |
10 cdef object renderer, texture_class | 10 cdef object renderer, texture_class |
11 | 11 |
12 cdef void load(self, dict labels) except * | 12 cdef bint load(self, dict labels) except True |