/trunk/Examples/ruby/template/example.i
Swig | 21 lines | 12 code | 6 blank | 3 comment | 0 complexity | 0904d80106278bebd640308053907f4b MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- /* 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>;