added another case

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6299 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-04 03:32:00 +00:00
commit a44038b71f
2 changed files with 10 additions and 0 deletions

View file

@ -17,6 +17,10 @@ class Foo {
public:
Foo(){}
#ifdef SWIG
%extend { Foo(int a, int b) { return new Foo(); } }
#endif
int spam() { return 1; }
int spam(const char* c) { return 2; }
};
@ -62,6 +66,10 @@ class FooT {
public:
FooT(){}
#ifdef SWIG
%extend { FooT(int a, int b) { return new FooT<T>(); } }
#endif
int spam() { return 1; }
int spam(const char* c) { return 2; }
};