more examples, and fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6432 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-18 02:08:55 +00:00
commit 39ae60f7d8
17 changed files with 123 additions and 28 deletions

View file

@ -2,6 +2,10 @@
%module extend_default
%warnfilter(302) Override::over;
%warnfilter(302) Override::overload;
%warnfilter(302) Override::ride;
// %extend before the class definition
%extend Before {
Before(int i = -1, double d = -1.0) {
@ -86,9 +90,6 @@ struct OverAfter {
%}
#pragma SWIG nowarn=-302
//%warnfilter(302) over; // why doesn't this work?
// %extend overrides the class definition
%extend Override {
int over(int a) { return a*a; } // SWIG should give a warning then choose this one over the real one