cpython/Include/cpython/methodobject.h

#ifndef Py_CPYTHON_METHODOBJECT_H
#  error "this header file must not be included directly"
#endif

// PyCFunctionObject structure

PyCFunctionObject;

#define _PyCFunctionObject_CAST(func)


// PyCMethodObject structure

PyCMethodObject;

#define _PyCMethodObject_CAST(func)

PyAPI_DATA(PyTypeObject) PyCMethod_Type;

#define PyCMethod_CheckExact(op)
#define PyCMethod_Check(op)


/* Static inline functions for direct access to these values.
   Type checks are *not* done, so use with care. */
static inline PyCFunction PyCFunction_GET_FUNCTION(PyObject *func) {}
#define PyCFunction_GET_FUNCTION(func)

static inline PyObject* PyCFunction_GET_SELF(PyObject *func_obj) {}
#define PyCFunction_GET_SELF(func)

static inline int PyCFunction_GET_FLAGS(PyObject *func) {}
#define PyCFunction_GET_FLAGS(func)

static inline PyTypeObject* PyCFunction_GET_CLASS(PyObject *func_obj) {}
#define PyCFunction_GET_CLASS(func)