2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 05:42:30 +00:00

Use python macros to stay on public API for new pythons

This commit is contained in:
Pat Riehecky
2020-03-02 08:29:52 -06:00
committed by Stefan Seefeld
parent 944fa075b3
commit 9ad5298d0b

View File

@@ -25,7 +25,7 @@ namespace detail
if (
PyMethod_Check(m.get())
&& ((PyMethodObject*)m.get())->im_self == this->m_self
&& PyMethod_GET_SELF(m.get()) == this->m_self
&& class_object->tp_dict != 0
)
{
@@ -34,7 +34,7 @@ namespace detail
}
if (borrowed_f != ((PyMethodObject*)m.get())->im_func)
if (borrowed_f != PyMethod_GET_FUNCTION(m.get()))
return override(m);
}
}