PageRenderTime 40ms CodeModel.GetById 38ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 4   SWIG 1.3a5 signals a syntax error.
 5*/
 6
 7%module const_const
 8
 9%typemap(in) const int *const { $1 = NULL; }
10
11%inline %{
12void foo(const int *const i) {}
13%}