Daniel Moore patch - more operator overloading support

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9154 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-06-12 21:07:38 +00:00
commit 6c9455d440
2 changed files with 25 additions and 1 deletions

View file

@ -1346,9 +1346,15 @@ public:
} else if (Strstr(symname, "__gt__")) {
DohSetInt(operators,"__gt__",1);
have_operators = 1;
} else if (Strstr(symname, "__ge__")) {
DohSetInt(operators,"__ge__",1);
have_operators = 1;
} else if (Strstr(symname, "__lt__")) {
DohSetInt(operators,"__lt__",1);
have_operators = 1;
} else if (Strstr(symname, "__le__")) {
DohSetInt(operators,"__le__",1);
have_operators = 1;
} else if (Strstr(symname, "__neg__")) {
DohSetInt(operators,"__neg__",1);
have_operators = 1;