Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/template_ns3.i
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

22 lines
301 B
OpenEdge ABL

%module template_ns3
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo::bar<int>; /* Ruby, wrong class name */
%inline %{
namespace foo {
typedef int Integer;
template<class T> class bar {
public:
Integer test(Integer x) { return x; }
};
}
%}
%template(bari) foo::bar<int>;