* python/py-threadevent.c (get_event_thread): Use
CPYCHECKER_RETURNS_BORROWED_REF. * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF): New define. (pspace_to_pspace_object, objfile_to_objfile_object) (find_thread_object): Use it.
This commit is contained in:
parent
62eec1a534
commit
634c58be55
3 changed files with 25 additions and 3 deletions
|
@ -24,6 +24,9 @@
|
|||
This function returns the currently stopped thread in non-stop mode and
|
||||
Py_None otherwise. In each case it returns a borrowed reference. */
|
||||
|
||||
static PyObject *get_event_thread (void)
|
||||
CPYCHECKER_RETURNS_BORROWED_REF;
|
||||
|
||||
static PyObject *
|
||||
get_event_thread (void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue