Commit 195b23c9 authored by Stefan Behnel's avatar Stefan Behnel

Clean up __pyx_fatalerror() and avoid inlining it.

parent 9d55b5ef
...@@ -440,8 +440,12 @@ no_fail: ...@@ -440,8 +440,12 @@ no_fail:
return retval; return retval;
} }
#ifndef Py_NO_RETURN
// available since Py3.3
#define Py_NO_RETURN
#endif
static CYTHON_INLINE void __pyx_fatalerror(const char *fmt, ...) { static void __pyx_fatalerror(const char *fmt, ...) Py_NO_RETURN {
va_list vargs; va_list vargs;
char msg[200]; char msg[200];
...@@ -450,11 +454,10 @@ static CYTHON_INLINE void __pyx_fatalerror(const char *fmt, ...) { ...@@ -450,11 +454,10 @@ static CYTHON_INLINE void __pyx_fatalerror(const char *fmt, ...) {
#else #else
va_start(vargs); va_start(vargs);
#endif #endif
vsnprintf(msg, 200, fmt, vargs); vsnprintf(msg, 200, fmt, vargs);
Py_FatalError(msg);
va_end(vargs); va_end(vargs);
Py_FatalError(msg);
} }
static CYTHON_INLINE int static CYTHON_INLINE int
......
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