Use %rename

This commit is contained in:
Zackery Spytz 2020-06-07 13:56:07 -06:00
commit b1b13d7d0a
2 changed files with 8 additions and 0 deletions

View file

@ -3,6 +3,13 @@
%include "std_string.i"
%feature("director");
#if !defined(SWIGLUA) && !defined(SWIGR)
%rename(EqualEqual) operator ==;
%rename(NotEqual) operator !=;
%rename(LessThanEqual) operator <=;
%rename(GreaterThanEqual) operator >=;
#endif
%inline %{
class Foo {
public: