Drop special case for PHP in allowexcept.i

Now the varinit typemaps are gone we no longer take the address of
the variable in the generated code.
This commit is contained in:
Olly Betts 2021-04-17 07:38:23 +12:00
parent 14edc26c8d
commit 3e4b7b3368
1 changed files with 0 additions and 12 deletions

View File

@ -26,17 +26,6 @@ UVW Bar::static_member_variable;
struct XYZ { struct XYZ {
}; };
// The operator& trick doesn't work for SWIG/PHP because the generated code
// takes the address of the variable in the code in the "vinit" section.
#ifdef SWIGPHP
%{
struct XYZ {
void foo() {}
private:
XYZ& operator=(const XYZ& other); // prevent assignment used in normally generated set method
};
%}
#else
%{ %{
struct XYZ { struct XYZ {
void foo() {} void foo() {}
@ -45,7 +34,6 @@ private:
XYZ* operator&(); // prevent dereferencing used in normally generated get method XYZ* operator&(); // prevent dereferencing used in normally generated get method
}; };
%} %}
#endif
#if defined(SWIGUTL) #if defined(SWIGUTL)
%exception { %exception {
/* /*