Tweak testcase comments
This commit is contained in:
parent
cfc3888cba
commit
732af1d7b8
2 changed files with 3 additions and 4 deletions
|
|
@ -57,8 +57,7 @@ inline bool operator==( const EqualOpWrong& first, const EqualOpWrong& second )
|
||||||
%}
|
%}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
in order to wrapper this correctly
|
in order to wrap this correctly we need to extend the class
|
||||||
we need to extend the class
|
|
||||||
to make the friends & non members part of the class
|
to make the friends & non members part of the class
|
||||||
*/
|
*/
|
||||||
%extend EqualOpDefined {
|
%extend EqualOpDefined {
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,7 @@ see bottom for a set of possible tests
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SWIGPHP
|
#ifdef SWIGPHP
|
||||||
|
// "And" and "Or" can't be used as function names in PHP.
|
||||||
%rename(AndOperator) operator &&;
|
%rename(AndOperator) operator &&;
|
||||||
%rename(OrOperator) operator ||;
|
%rename(OrOperator) operator ||;
|
||||||
#endif
|
#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);}
|
Op operator-(const Op& a,const Op& b){return Op(a.i-b.i);}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
// in order to wrapper this correctly
|
// in order to wrap this correctly we need to extend the class
|
||||||
// we need to extend the class
|
|
||||||
// to make the friends & non members part of the class
|
// to make the friends & non members part of the class
|
||||||
%extend Op{
|
%extend Op{
|
||||||
Op operator &&(const Op& b){return Op($self->i&&b.i);}
|
Op operator &&(const Op& b){return Op($self->i&&b.i);}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue