Mercurial > touhou
comparison pytouhou/ui/window.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 | 3c2f96f1d715 |
children | 80687f258001 |
comparison
equal
deleted
inserted
replaced
616:4ce3ef053a25 | 617:a6af3ff86612 |
---|---|
5 cdef unsigned long _ref_tick | 5 cdef unsigned long _ref_tick |
6 cdef long _target_fps, _ref_frame, _fps_tick, _fps_frame | 6 cdef long _target_fps, _ref_frame, _fps_tick, _fps_frame |
7 cdef double fps | 7 cdef double fps |
8 | 8 |
9 cdef void set_target_fps(self, long fps) nogil | 9 cdef void set_target_fps(self, long fps) nogil |
10 cdef void tick(self) nogil except * | 10 cdef bint tick(self) nogil except True |
11 | 11 |
12 | 12 |
13 cdef class Runner: | 13 cdef class Runner: |
14 cdef long width, height | 14 cdef long width, height |
15 | 15 |
16 cdef void start(self) except * | 16 cdef bint start(self) except True |
17 cdef void finish(self) except * | 17 cdef bint finish(self) except True |
18 cpdef bint update(self, bint render) except -1 | 18 cpdef bint update(self, bint render) except -1 |
19 | 19 |
20 | 20 |
21 cdef class Window: | 21 cdef class Window: |
22 cdef sdl.Window win | 22 cdef sdl.Window win |