1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
# OK
cdef int wider_exception_check(int x, int y) except? 0
cdef int no_exception_raised(int x, int y) except *
cdef int any_exception_value1(int x, int y) except *
cdef int any_exception_value2(int x, int y) except *
cdef int any_exception_value3(int x, int y) except *
cdef int any_exception_value4(int x, int y) except *
cdef int optimised_exception_value(int x, int y) except? -1
# NOK
cdef int wrong_args(int x, long y)
cdef long wrong_return_type(int x, int y)
cdef int foreign_exception_value(int x, int y) except 0
cdef int narrower_exception_check(int x, int y) except 0
cdef int wrong_exception_value(int x, int y) except 0
cdef int wrong_exception_value_check(int x, int y) except 0
cdef int wrong_exception_value_optimised_check(int x, int y) except? -2
cdef int wrong_exception_value_optimised(int x, int y) except -2
cdef int narrower_exception_check_optimised(int x, int y) except -1
|