Commit d1a1da32 authored by Stefan Behnel's avatar Stefan Behnel

fix compilation and exception conversion when using 'except +'

parent e501c41a
...@@ -9873,6 +9873,11 @@ bad: ...@@ -9873,6 +9873,11 @@ bad:
cpp_exception_utility_code = UtilityCode( cpp_exception_utility_code = UtilityCode(
proto = """ proto = """
#ifndef __Pyx_CppExn2PyErr #ifndef __Pyx_CppExn2PyErr
#include <new>
#include <typeinfo>
#include <stdexcept>
#include <iostream>
static void __Pyx_CppExn2PyErr() { static void __Pyx_CppExn2PyErr() {
// Catch a handful of different errors here and turn them into the // Catch a handful of different errors here and turn them into the
// equivalent Python errors. // equivalent Python errors.
...@@ -9911,9 +9916,7 @@ static void __Pyx_CppExn2PyErr() { ...@@ -9911,9 +9916,7 @@ static void __Pyx_CppExn2PyErr() {
} }
} }
#endif #endif
""", """)
impl = ""
)
pyerr_occurred_withgil_utility_code= UtilityCode( pyerr_occurred_withgil_utility_code= UtilityCode(
proto = """ proto = """
......
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