/trunk/Examples/test-suite/arrayref.i
Swig | 14 lines | 8 code | 6 blank | 0 comment | 0 complexity | 46285183d68e914597c39d8230337c8c MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- // A function that passes arrays by reference
- %module arrayref
- %inline %{
- void foo(const int (&x)[10]) {
- }
- void bar(int (&x)[10]) {
- }
- %}