Tweak testcase comments

This commit is contained in:
Olly Betts 2022-07-13 15:15:56 +12:00
parent cfc3888cba
commit 732af1d7b8
2 changed files with 3 additions and 4 deletions

View File

@ -57,8 +57,7 @@ inline bool operator==( const EqualOpWrong& first, const EqualOpWrong& second )
%}
/*
in order to wrapper this correctly
we need to extend the class
in order to wrap this correctly we need to extend the class
to make the friends & non members part of the class
*/
%extend EqualOpDefined {

View File

@ -69,6 +69,7 @@ see bottom for a set of possible tests
#endif
#ifdef SWIGPHP
// "And" and "Or" can't be used as function names in PHP.
%rename(AndOperator) operator &&;
%rename(OrOperator) operator ||;
#endif
@ -174,8 +175,7 @@ inline bool operator>=(const Op& a,const Op& b){return a.i>=b.i;}
Op operator-(const Op& a,const Op& b){return Op(a.i-b.i);}
%}
// in order to wrapper this correctly
// we need to extend the class
// in order to wrap this correctly we need to extend the class
// to make the friends & non members part of the class
%extend Op{
Op operator &&(const Op& b){return Op($self->i&&b.i);}