fixes for new flag attribute convention

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7605 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-10-07 13:19:06 +00:00
commit 54ba818937
7 changed files with 53 additions and 45 deletions

View file

@ -6,7 +6,7 @@
#ifdef __cplusplus
%define %pybinoperator(pyname,oper)
%rename(pyname) oper;
%pythonmaybecall(1) oper;
%pythonmaybecall oper;
%enddef
%pybinoperator(__add__, *::operator+);
@ -31,8 +31,8 @@
%pybinoperator(__ne__, *::operator!=);
%define %pybinoperation(oper)
%pythonmaybecall(1) __ ## oper ## __;
%pythonmaybecall(1) __r ## oper ## __;
%pythonmaybecall __ ## oper ## __;
%pythonmaybecall __r ## oper ## __;
%enddef
%pybinoperation(add);