PageRenderTime 44ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 1ms

/tags/rel-1-3-15/SWIG/Examples/test-suite/default_ref.i

#
Swig | 12 lines | 8 code | 4 blank | 0 comment | 0 complexity | ef46faf47168ed039884d3e31e925df1 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module default_ref
  2. %inline %{
  3. #include <string>
  4. void test1(const int &x = 42) {
  5. }
  6. void test2(const std::string &x = "hello") {
  7. }
  8. %}