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

# · Swig · 13 lines · 5 code · 3 blank · 5 comment · 0 complexity · 8991d6b3582bd3c67a322fd65aec187a MD5 · raw file

  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. %}