swig/SWIG/Examples/test-suite/template_enum.i
Marcelo Matus 3634df5e12 add support for named warning codes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8249 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 11:42:24 +00:00

15 lines
321 B
OpenEdge ABL

%module template_enum
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo<int>; /* Ruby, wrong class name */
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo<double>; /* Ruby, wrong class name */
%inline %{
template<class T> class foo {
public:
enum { FOO, BAR };
};
%}
%template(foo_i) foo<int>;
%template(foo_d) foo<double>;