Skip to content
Snippets Groups Projects
Commit 505c332b authored by Amorilia's avatar Amorilia
Browse files

Python wrapper exception support fix.

parent fb2cd7a5
No related branches found
No related tags found
No related merge requests found
......@@ -40,17 +40,18 @@ POSSIBILITY OF SUCH DAMAGE. */
%include "exception.i"
%include "std_list.i"
// we need a version of SWIG that has SWIG_CATCH_STDEXCEPT support
#if SWIG_VERSION >= 0x010322
%exception {
try {
$action
}
#if SWIG_VERSION >= 0x010322
SWIG_CATCH_STDEXCEPT // catch std::exception
#endif
catch (...) {
SWIG_exception(SWIG_UnknownError, "Unknown exception");
}
}
#endif
%{
#include "niflib.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment