comparison pytouhou/ui/window.pxd @ 606:3c2f96f1d715

Fix compilation under Cython 0.22, by making the pyx and the pxd declarations’ except clause similar.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 26 Nov 2014 13:36:38 +0100
parents ab131d04987d
children a6af3ff86612
comparison
equal deleted inserted replaced
605:d6ead6f0ba80 606:3c2f96f1d715
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 void start(self) except *
17 cdef void finish(self) except * 17 cdef void finish(self) except *
18 cpdef bint update(self, bint render) except? False 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
23 cdef Runner runner 23 cdef Runner runner
26 cdef int width, height 26 cdef int width, height
27 27
28 cdef void set_size(self, int width, int height) nogil 28 cdef void set_size(self, int width, int height) nogil
29 cpdef set_runner(self, Runner runner=*) 29 cpdef set_runner(self, Runner runner=*)
30 cpdef run(self) 30 cpdef run(self)
31 cdef bint run_frame(self) except? False 31 cdef bint run_frame(self) except -1
32 cdef double get_fps(self) nogil 32 cdef double get_fps(self) nogil