Commit 911ca8a1 authored by Robert Bradshaw's avatar Robert Bradshaw

Allow predeclared __Pyx_CppExn2PyErr.

parent 2bde7094
......@@ -4102,9 +4102,8 @@ bad:
cpp_exception_utility_code = [
"""
static int __Pyx_CppExn2PyErr(); /*proto*/
""","""
void __Pyx_CppExn2PyErr() {
#ifndef __Pyx_CppExn2PyErr
static void __Pyx_CppExn2PyErr() {
try {
if (PyErr_Occurred())
; // let the latest Python exn pass through and ignore the current one
......@@ -4121,6 +4120,7 @@ void __Pyx_CppExn2PyErr() {
PyErr_SetString(PyExc_RuntimeError, "Unknown exception");
}
}
"""]
#endif
""",""]
#------------------------------------------------------------------------------------
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