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:
parent
10f4584612
commit
6c9455d440
2 changed files with 25 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue