PageRenderTime 52ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 1ms

/trunk/Examples/test-suite/const_const.i

#
Swig | 13 lines | 5 code | 3 blank | 5 comment | 0 complexity | 8991d6b3582bd3c67a322fd65aec187a MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. /* This interface file tests whether SWIG handles types like
  2. "const int *const" right.
  3. SWIG 1.3a5 signals a syntax error.
  4. */
  5. %module const_const
  6. %typemap(in) const int *const { $1 = NULL; }
  7. %inline %{
  8. void foo(const int *const i) {}
  9. %}