/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/python_abstractbase.i
26 строк
561 B
William S Fulton
Add Python < 3.3 support for pyabc.i
23 мар 2022, 10:58
23 мар 2022, 10:58
f068f2c
Код
Авторство
О чём код?
%module python_abstractbase %include <pyabc.i> %include <std_map.i> %include <std_multimap.i> %include <std_set.i> %include <std_multiset.i> %include <std_list.i> %include <std_vector.i> namespace std { %template(Mapii) map<int, int>; %template(Multimapii) multimap<int, int>; %template(IntSet) set<int>; %template(IntMultiset) multiset<int>; %template(IntVector) vector<int>; %template(IntList) list<int>; } %inline %{ #ifdef SWIGPYTHON_BUILTIN bool is_python_builtin() { return true; } #else bool is_python_builtin() { return false; } #endif %}