Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
8ac1a6a5
Commit
8ac1a6a5
authored
Jun 13, 2019
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow (and ignore) empty defines of Py_TPFLAGS_METHOD_DESCRIPTOR.
parent
37070f3d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Utility/ObjectHandling.c
Cython/Utility/ObjectHandling.c
+2
-2
No files found.
Cython/Utility/ObjectHandling.c
View file @
8ac1a6a5
...
@@ -1485,10 +1485,10 @@ static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **me
...
@@ -1485,10 +1485,10 @@ static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **me
descr
=
_PyType_Lookup
(
tp
,
name
);
descr
=
_PyType_Lookup
(
tp
,
name
);
if
(
likely
(
descr
!=
NULL
))
{
if
(
likely
(
descr
!=
NULL
))
{
Py_INCREF
(
descr
);
Py_INCREF
(
descr
);
// Repeating the condition below accommodates for MSVC's inability to test macros inside of macro expansions.
#if defined(Py_TPFLAGS_METHOD_DESCRIPTOR) && Py_TPFLAGS_METHOD_DESCRIPTOR
#ifdef Py_TPFLAGS_METHOD_DESCRIPTOR
if
(
PyType_HasFeature
(
Py_TYPE
(
descr
),
Py_TPFLAGS_METHOD_DESCRIPTOR
))
if
(
PyType_HasFeature
(
Py_TYPE
(
descr
),
Py_TPFLAGS_METHOD_DESCRIPTOR
))
#elif PY_MAJOR_VERSION >= 3
#elif PY_MAJOR_VERSION >= 3
// Repeating the condition below accommodates for MSVC's inability to test macros inside of macro expansions.
#ifdef __Pyx_CyFunction_USED
#ifdef __Pyx_CyFunction_USED
if
(
likely
(
PyFunction_Check
(
descr
)
||
(
Py_TYPE
(
descr
)
==
&
PyMethodDescr_Type
)
||
__Pyx_CyFunction_Check
(
descr
)))
if
(
likely
(
PyFunction_Check
(
descr
)
||
(
Py_TYPE
(
descr
)
==
&
PyMethodDescr_Type
)
||
__Pyx_CyFunction_Check
(
descr
)))
#else
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment