Also added test cases for the unnamed temporary destruction that is throwing assertions in Python 3.5.
17 lines
321 B
OpenEdge ABL
17 lines
321 B
OpenEdge ABL
/* File : example.i */
|
|
%module python_destructor_exception
|
|
%include exception.i
|
|
|
|
%exception ClassWithThrowingDestructor::~ClassWithThrowingDestructor()
|
|
{
|
|
$action
|
|
SWIG_exception(SWIG_RuntimeError, "I am the ClassWithThrowingDestructor dtor doing bad things");
|
|
}
|
|
|
|
%inline %{
|
|
class ClassWithThrowingDestructor
|
|
{
|
|
};
|
|
|
|
%}
|
|
|