cpython/Python/structmember.c


/* Map C struct members to Python object attributes */

#include "Python.h"
#include "pycore_abstract.h"      // _PyNumber_Index()
#include "pycore_long.h"          // _PyLong_IsNegative()
#include "pycore_object.h"        // _Py_TryIncrefCompare(), FT_ATOMIC_*()
#include "pycore_critical_section.h"


static inline PyObject *
member_get_object(const char *addr, const char *obj_addr, PyMemberDef *l)
{}

PyObject *
PyMember_GetOne(const char *obj_addr, PyMemberDef *l)
{}

#define WARN(msg)

int
PyMember_SetOne(char *addr, PyMemberDef *l, PyObject *v)
{}