@@ -1240,6 +1240,8 @@ void unimplemented(const char* name) {
1240
1240
#undef _PyBytes_FromHex
1241
1241
#undef _PyBytes_Join
1242
1242
#undef _PyBytes_Resize
1243
+ #undef _PyCFunction_GetMethodDef
1244
+ #undef _PyCFunction_GetModule
1243
1245
#undef _PyCode_CheckLineNumber
1244
1246
#undef _PyCode_ConstantKey
1245
1247
#undef _PyCode_GetExtra
@@ -4809,6 +4811,16 @@ PyAPI_FUNC(int) _PyBytes_Resize(PyObject** a, Py_ssize_t b) {
4809
4811
int result = (int ) __target___PyBytes_Resize (a , b );
4810
4812
return result ;
4811
4813
}
4814
+ PyMethodDef * (* __target___PyCFunction_GetMethodDef )(PyObject * ) = NULL ;
4815
+ PyAPI_FUNC (PyMethodDef * ) _PyCFunction_GetMethodDef (PyObject * a ) {
4816
+ PyMethodDef * result = (PyMethodDef * ) __target___PyCFunction_GetMethodDef (a );
4817
+ return result ;
4818
+ }
4819
+ PyObject * (* __target___PyCFunction_GetModule )(PyObject * ) = NULL ;
4820
+ PyAPI_FUNC (PyObject * ) _PyCFunction_GetModule (PyObject * a ) {
4821
+ PyObject * result = (PyObject * ) __target___PyCFunction_GetModule (a );
4822
+ return result ;
4823
+ }
4812
4824
PyAPI_FUNC (int ) _PyCode_CheckLineNumber (int a , PyCodeAddressRange * b ) {
4813
4825
unimplemented ("_PyCode_CheckLineNumber" ); exit (-1 );
4814
4826
}
@@ -6409,6 +6421,8 @@ void initializeCAPIForwards(void* (*getAPI)(const char*)) {
6409
6421
__target___PyBytesWriter_Resize = getAPI ("_PyBytesWriter_Resize" );
6410
6422
__target___PyBytesWriter_WriteBytes = getAPI ("_PyBytesWriter_WriteBytes" );
6411
6423
__target___PyBytes_Resize = getAPI ("_PyBytes_Resize" );
6424
+ __target___PyCFunction_GetMethodDef = getAPI ("_PyCFunction_GetMethodDef" );
6425
+ __target___PyCFunction_GetModule = getAPI ("_PyCFunction_GetModule" );
6412
6426
__target___PyErr_BadInternalCall = getAPI ("_PyErr_BadInternalCall" );
6413
6427
__target___PyErr_WriteUnraisableMsg = getAPI ("_PyErr_WriteUnraisableMsg" );
6414
6428
__target___PyEval_SliceIndex = getAPI ("_PyEval_SliceIndex" );
0 commit comments