From 3e4b7b33689769ef37cd23740615726bb62bfbe9 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Sat, 17 Apr 2021 07:38:23 +1200 Subject: [PATCH] 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. --- Examples/test-suite/allowexcept.i | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Examples/test-suite/allowexcept.i b/Examples/test-suite/allowexcept.i index c901295df..229e65cc9 100644 --- a/Examples/test-suite/allowexcept.i +++ b/Examples/test-suite/allowexcept.i @@ -26,17 +26,6 @@ UVW Bar::static_member_variable; 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 { void foo() {} @@ -45,7 +34,6 @@ private: XYZ* operator&(); // prevent dereferencing used in normally generated get method }; %} -#endif #if defined(SWIGUTL) %exception { /*