warning fixes for most target languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10346 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
843674e12a
commit
462304094b
1 changed files with 14 additions and 1 deletions
|
|
@ -1,5 +1,18 @@
|
|||
%module operator_overload_break
|
||||
|
||||
#if defined(SWIGPYTHON)
|
||||
%warnfilter(SWIGWARN_IGNORE_OPERATOR_INDEX);
|
||||
#endif
|
||||
|
||||
#if !defined(SWIGLUA) && !defined(SWIGR) && !defined(SWIGPERL)
|
||||
%rename(Plus) operator +;
|
||||
%rename(Minus) operator -;
|
||||
%rename(EqualEqual) operator ==;
|
||||
%rename(PlusPlusPrefix) operator++();
|
||||
%rename(PlusPlusPostfix) operator++(int);
|
||||
#endif
|
||||
|
||||
|
||||
%{
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
|
@ -48,4 +61,4 @@ public:
|
|||
int k;
|
||||
};
|
||||
|
||||
%}
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue