PageRenderTime 39ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Swig | 19 lines | 15 code | 4 blank | 0 comment | 0 complexity | cb4672170f655135010ffeaa30dde849 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module arrays_scope
  2. %inline %{
  3. enum { ASIZE = 256 };
  4. namespace foo {
  5. enum { BBSIZE = 512 };
  6. class Bar {
  7. public:
  8. enum { CCSIZE = 768 };
  9. int adata[ASIZE];
  10. int bdata[BBSIZE];
  11. int cdata[CCSIZE];
  12. void blah(int x[ASIZE], int y[BBSIZE], int z[CCSIZE]) { };
  13. };
  14. }
  15. %}