Commit c6a6b3c9 authored by Stefan Behnel's avatar Stefan Behnel

Improve C macro guard: __Pyx_GetAttr() should be optimised exactly iff...

Improve C macro guard: __Pyx_GetAttr() should be optimised exactly iff __Pyx_PyObject_GetAttrStr() is also optimised.
parent 9f1b755e
...@@ -1064,7 +1064,7 @@ static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *); /*proto*/ ...@@ -1064,7 +1064,7 @@ static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *); /*proto*/
//@requires: PyObjectGetAttrStr //@requires: PyObjectGetAttrStr
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *o, PyObject *n) { static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *o, PyObject *n) {
#if CYTHON_COMPILING_IN_CPYTHON #if CYTHON_USE_TYPE_SLOTS
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
if (likely(PyUnicode_Check(n))) if (likely(PyUnicode_Check(n)))
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment