Eliminate use of fn in testcases
Fix cpp11_lambda_functions and rname to use fn1 instead of fn, since fn is a reserved word as of PHP 7.4.
This commit is contained in:
parent
49d923b917
commit
8cd98ec74e
3 changed files with 5 additions and 5 deletions
|
|
@ -22,7 +22,7 @@
|
|||
%rename (newname) Space::Base::oldname(double d) const;
|
||||
|
||||
/* Rename derived class method only */
|
||||
%rename (Xfunc) Space::Derived::fn(Base baseValue, Base* basePtr, Base& baseRef);
|
||||
%rename (Xfunc) Space::Derived::fn1(Base baseValue, Base* basePtr, Base& baseRef);
|
||||
|
||||
%inline %{
|
||||
class Bar {
|
||||
|
|
@ -43,14 +43,14 @@ class Base {
|
|||
public:
|
||||
Base(){};
|
||||
virtual ~Base(){};
|
||||
void fn(Base baseValue, Base* basePtr, Base& baseRef){}
|
||||
void fn1(Base baseValue, Base* basePtr, Base& baseRef){}
|
||||
virtual const char * oldname(double d) const { return "Base"; }
|
||||
};
|
||||
class Derived : public Base {
|
||||
public:
|
||||
Derived(){}
|
||||
~Derived(){}
|
||||
void fn(Base baseValue, Base* basePtr, Base& baseRef){}
|
||||
void fn1(Base baseValue, Base* basePtr, Base& baseRef){}
|
||||
virtual const char * oldname(double d) const { return "Derived"; }
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue