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
Gwenaël Samain
cython
Commits
2a1f74aa
Commit
2a1f74aa
authored
Sep 05, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try to fix MSVC compilation problem by simplifying macro usage
parent
cf2c2df7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
Cython/Utility/ObjectHandling.c
Cython/Utility/ObjectHandling.c
+17
-13
No files found.
Cython/Utility/ObjectHandling.c
View file @
2a1f74aa
...
@@ -1289,14 +1289,17 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObjec
...
@@ -1289,14 +1289,17 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObjec
#if CYTHON_COMPILING_IN_CPYTHON
#if CYTHON_COMPILING_IN_CPYTHON
static
CYTHON_INLINE
PyObject
*
__Pyx_PyObject_CallOneArg
(
PyObject
*
func
,
PyObject
*
arg
)
{
static
CYTHON_INLINE
PyObject
*
__Pyx_PyObject_CallOneArg
(
PyObject
*
func
,
PyObject
*
arg
)
{
if
(
likely
(
PyCFunction_Check
(
func
)
#ifdef __Pyx_CyFunction_USED
#ifdef __Pyx_CyFunction_USED
||
PyObject_TypeCheck
(
func
,
__pyx_CyFunctionType
)
if
(
likely
(
PyCFunction_Check
(
func
)
||
PyObject_TypeCheck
(
func
,
__pyx_CyFunctionType
)))
{
#else
if
(
likely
(
PyCFunction_Check
(
func
)))
{
#endif
#endif
)
&&
likely
(
PyCFunction_GET_FLAGS
(
func
)
&
METH_O
))
{
if
(
likely
(
PyCFunction_GET_FLAGS
(
func
)
&
METH_O
))
{
// fast and simple case that we are optimising for
// fast and simple case that we are optimising for
return
__Pyx_PyObject_CallMethO
(
func
,
arg
);
return
__Pyx_PyObject_CallMethO
(
func
,
arg
);
}
else
{
}
}
{
PyObject
*
result
;
PyObject
*
result
;
PyObject
*
args
=
PyTuple_New
(
1
);
PyObject
*
args
=
PyTuple_New
(
1
);
if
(
unlikely
(
!
args
))
return
NULL
;
if
(
unlikely
(
!
args
))
return
NULL
;
...
@@ -1333,16 +1336,17 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); /*proto
...
@@ -1333,16 +1336,17 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); /*proto
#if CYTHON_COMPILING_IN_CPYTHON
#if CYTHON_COMPILING_IN_CPYTHON
static
CYTHON_INLINE
PyObject
*
__Pyx_PyObject_CallNoArg
(
PyObject
*
func
)
{
static
CYTHON_INLINE
PyObject
*
__Pyx_PyObject_CallNoArg
(
PyObject
*
func
)
{
if
(
likely
(
PyCFunction_Check
(
func
)
#ifdef __Pyx_CyFunction_USED
#ifdef __Pyx_CyFunction_USED
||
PyObject_TypeCheck
(
func
,
__pyx_CyFunctionType
)
if
(
likely
(
PyCFunction_Check
(
func
)
||
PyObject_TypeCheck
(
func
,
__pyx_CyFunctionType
)))
{
#else
if
(
likely
(
PyCFunction_Check
(
func
)))
{
#endif
#endif
)
&&
likely
(
PyCFunction_GET_FLAGS
(
func
)
&
METH_NOARGS
))
{
if
(
likely
(
PyCFunction_GET_FLAGS
(
func
)
&
METH_NOARGS
))
{
// fast and simple case that we are optimising for
// fast and simple case that we are optimising for
return
__Pyx_PyObject_CallMethO
(
func
,
NULL
);
return
__Pyx_PyObject_CallMethO
(
func
,
NULL
);
}
else
{
}
return
__Pyx_PyObject_Call
(
func
,
$
empty_tuple
,
NULL
);
}
}
return
__Pyx_PyObject_Call
(
func
,
$
empty_tuple
,
NULL
);
}
}
#endif
#endif
...
...
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