@@ -50,9 +50,9 @@ cdef extern from "macros.h" nogil:
5050 int sig_check_no_except "sig_check"()
5151
5252# This function adds custom block/unblock/pending.
53- cdef int add_custom_signals(int (*custom_signal_is_blocked)(),
54- void (*custom_signal_unblock)(),
55- void (*custom_set_pending_signal)(int)) except -1
53+ cdef int add_custom_signals(int (*custom_signal_is_blocked)() noexcept ,
54+ void (*custom_signal_unblock)() noexcept ,
55+ void (*custom_set_pending_signal)(int) noexcept ) except -1
5656
5757# This function does nothing, but it is declared cdef except *, so it
5858# can be used to make Cython check whether there is a pending exception
@@ -62,9 +62,9 @@ cdef inline void cython_check_exception() except * nogil:
6262 pass
6363
6464
65- cdef void verify_exc_value()
65+ cdef void verify_exc_value() noexcept
6666
67- cdef inline PyObject* sig_occurred():
67+ cdef inline PyObject* sig_occurred() noexcept :
6868 """
6969 Borrowed reference to the exception which is currently being
7070 propagated from cysignals. If there is no exception or if we
@@ -88,13 +88,13 @@ cdef inline PyObject* sig_occurred():
8888# these available to every Cython module cimporting this file.
8989cdef nogil:
9090 cysigs_t cysigs "cysigs"
91- void _sig_on_interrupt_received "_sig_on_interrupt_received"()
92- void _sig_on_recover "_sig_on_recover"()
93- void _sig_off_warning "_sig_off_warning"(const char*, int)
94- void print_backtrace "print_backtrace"()
91+ void _sig_on_interrupt_received "_sig_on_interrupt_received"() noexcept
92+ void _sig_on_recover "_sig_on_recover"() noexcept
93+ void _sig_off_warning "_sig_off_warning"(const char*, int) noexcept
94+ void print_backtrace "print_backtrace"() noexcept
9595
9696
97- cdef inline void __generate_declarations():
97+ cdef inline void __generate_declarations() noexcept :
9898 cysigs
9999 _sig_on_interrupt_received
100100 _sig_on_recover
0 commit comments