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

# · Swig · 14 lines · 8 code · 6 blank · 0 comment · 0 complexity · 46285183d68e914597c39d8230337c8c MD5 · raw file

  1. // A function that passes arrays by reference
  2. %module arrayref
  3. %inline %{
  4. void foo(const int (&x)[10]) {
  5. }
  6. void bar(int (&x)[10]) {
  7. }
  8. %}