Macro expansion to self assign is effectively ignored.

This commit is contained in:
Michel Zou 2013-02-26 09:26:13 +01:00
commit 8155e14579

View file

@ -168,7 +168,7 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) {
return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
}
#else /* no cast-rank mode */
# define SWIG_AddCast(r) ((r)+0)
# define SWIG_AddCast(r) (r)
# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
#endif