PageRenderTime 65ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/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
  1. /* File : example.i */
  2. %module example
  3. %{
  4. #ifdef max
  5. #undef max
  6. #endif
  7. #include "example.h"
  8. %}
  9. /* Let's just grab the original header file here */
  10. %include "example.h"
  11. /* Now instantiate some specific template declarations */
  12. %template(maxint) max<int>;
  13. %template(maxdouble) max<double>;
  14. %template(Vecint) vector<int>;
  15. %template(Vecdouble) vector<double>;