3 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) eTest0; /* Ruby, wrong class name */
4 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) eTest1; /* Ruby, wrong class name */
5 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) eTest2; /* Ruby, wrong class name */
8 From bug report 992329:
12 >>> import enum_template
13 >>> enum_template.MakeETest()
15 >>> enum_template.TakeETest(0)
16 Traceback (most recent call last):
17 File "<stdin>", line 1, in ?
18 TypeError: Expected a pointer
20 Without the %template, things work fine: the first
21 function call returns an integer, and the second
34 void TakeETest(ETest test) {}
35 ETest MakeETest(void) {return eTest1;}
37 template<class T> class CTempl
43 %template(CTempl_ETest) CTempl<ETest>;