/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/python_destructor_exception.i
19 строк
384 B
William S Fulton
Add test case for Python 3.5 assertion with a pending StopIteration
16 дек 2015, 15:57
16 дек 2015, 15:57
26f52c5
Код
Авторство
О чём код?
/* 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 { }; %} %include <std_vector.i> %template(VectorInt) std::vector<int>;