/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/ruby/template/example.i
20 строк
362 B
Charlie Savage
Fixed compile problem on windows. The code defines a template called max - however, Windows already defines a macro called max. The fix is to undefine the macro.
22 сен 2005, 07:22
22 сен 2005, 07:22
a557be3
Код
Авторство
О чём код?
/* File : example.i */ %module example %{ #ifdef max #undef max #endif #include "example.h" %} /* Let's just grab the original header file here */ %include "example.h" /* Now instantiate some specific template declarations */ %template(maxint) max<int>; %template(maxdouble) max<double>; %template(Vecint) vector<int>; %template(Vecdouble) vector<double>;