diff options
author | Robert Bradshaw <robertwb@gmail.com> | 2014-10-18 15:06:17 -0700 |
---|---|---|
committer | Robert Bradshaw <robertwb@gmail.com> | 2014-10-18 15:07:18 -0700 |
commit | afb8498553b72ebaa7cb56f4a27d7a3ee91e86c4 (patch) | |
tree | cc3f779705ea0286feeabafdc2342f4b774763b4 /Cython/Utility/ModuleSetupCode.c | |
parent | 8a2ea03d4b07f4c31c5cb40e0305c6eb78ac4f90 (diff) | |
download | cython-afb8498553b72ebaa7cb56f4a27d7a3ee91e86c4.tar.gz |
Allow cpdef void-returning functions.
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index e73574f26..4961f03fe 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -215,6 +215,8 @@ static CYTHON_INLINE float __PYX_NAN() { } #endif +#define __Pyx_void_to_None(void_result) (void_result, Py_INCREF(Py_None), Py_None) + // Work around clang bug http://stackoverflow.com/questions/21847816/c-invoke-nested-template-class-destructor #ifdef __cplusplus template<typename T> |