/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
- /* This interface file tests whether SWIG handles types like
- "const int *const" right.
- SWIG 1.3a5 signals a syntax error.
- */
- %module const_const
- %typemap(in) const int *const { $1 = NULL; }
- %inline %{
- void foo(const int *const i) {}
- %}