/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
- %module default_ref
- %inline %{
- #include <string>
- void test1(const int &x = 42) {
- }
- void test2(const std::string &x = "hello") {
- }
- %}