mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
* 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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user