move &&/|| to ignore operators and put the name __and__ and __or__ back to represent &/|
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8347 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0e879bd415
commit
16992b9291
1 changed files with 4 additions and 4 deletions
|
|
@ -18,15 +18,13 @@
|
|||
%rename(__mod__) *::operator%;
|
||||
%rename(__gt__) *::operator>;
|
||||
%rename(__lt__) *::operator<;
|
||||
%rename(__and__) *::operator&&;
|
||||
%rename(__or__) *::operator||;
|
||||
%rename(__not__) *::operator!;
|
||||
|
||||
// These are renamed, but no 'use overload...' is added
|
||||
%rename(__lshift__) *::operator<<;
|
||||
%rename(__rshift__) *::operator>>;
|
||||
%rename(__band__) *::operator&;
|
||||
%rename(__bor__) *::operator|;
|
||||
%rename(__and__) *::operator&;
|
||||
%rename(__or__) *::operator|;
|
||||
%rename(__xor__) *::operator^;
|
||||
%rename(__invert__) *::operator~;
|
||||
%rename(__le__) *::operator<=;
|
||||
|
|
@ -34,6 +32,8 @@
|
|||
%rename(__call__) *::operator();
|
||||
|
||||
/* Ignored operators */
|
||||
%ignoreoperator(LAND) operator&&;
|
||||
%ignoreoperator(LOR) operator||;
|
||||
%ignoreoperator(PLUS) operator+();
|
||||
%ignoreoperator(PLUS) operator+() const;
|
||||
%ignoreoperator(PLUSEQ) operator+=;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue