Skip to content

Commit

Permalink
export sig_raise_exception
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Nov 17, 2024
1 parent 5b52757 commit e1cf135
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cysignals/signals.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ cdef int add_custom_signals(int (*custom_signal_is_blocked)() noexcept,
void (*custom_signal_unblock)() noexcept,
void (*custom_set_pending_signal)(int) noexcept) except -1

cdef int sig_raise_exception "sig_raise_exception"(int sig, const char* msg) except 0 with gil

# This function does nothing, but it is declared cdef except *, so it
# can be used to make Cython check whether there is a pending exception
# (PyErr_Occurred() is non-NULL). To Cython, it will look like
Expand Down

0 comments on commit e1cf135

Please sign in to comment.