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
Boxiang Sun
cython
Commits
8f9b1471
Commit
8f9b1471
authored
Aug 10, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support CyFunction also in __Pyx_PyObject_CallNoArg()
parent
677efaa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Cython/Utility/ObjectHandling.c
Cython/Utility/ObjectHandling.c
+5
-1
No files found.
Cython/Utility/ObjectHandling.c
View file @
8f9b1471
...
@@ -1222,7 +1222,11 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); /*proto
...
@@ -1222,7 +1222,11 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); /*proto
static
CYTHON_INLINE
PyObject
*
__Pyx_PyObject_CallNoArg
(
PyObject
*
func
)
{
static
CYTHON_INLINE
PyObject
*
__Pyx_PyObject_CallNoArg
(
PyObject
*
func
)
{
PyObject
*
self
,
*
result
;
PyObject
*
self
,
*
result
;
PyCFunction
cfunc
;
PyCFunction
cfunc
;
if
(
!
PyCFunction_Check
(
func
)
||
!
(
PyCFunction_GET_FLAGS
(
func
)
&
METH_NOARGS
))
{
if
(
!
(
PyCFunction_Check
(
func
)
#ifdef __Pyx_CyFunction_USED
||
PyObject_TypeCheck
(
func
,
__pyx_CyFunctionType
)
#endif
)
||
!
(
PyCFunction_GET_FLAGS
(
func
)
&
METH_NOARGS
))
{
return
__Pyx_PyObject_Call
(
func
,
$
empty_tuple
,
NULL
);
return
__Pyx_PyObject_Call
(
func
,
$
empty_tuple
,
NULL
);
}
}
...
...
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