swig/Lib/php
Olly Betts 4ac3c87a29 Sort out predefined SWIG-specific macros
Ensure that SWIG_VERSION is defined both at SWIG-time and in the
generated C/C++ wrapper code (it was only defined in the wrapper
for some target languages previously).

SWIGGO and SWIGJAVASCRIPT are now defined in the generated wrappers
to match behaviour for all other target languages.

Stop defining SWIGVERSION in the wrapper.  This only happened as a
side-effect of how SWIG_VERSION was defined but was never documented and
is redundant.

The new testcase also checks that SWIG is defined at SWIG-time but not
in the generated wrapper, and that exactly one of a list of
target-language specific macros is defined.

Fixes #1050
2022-10-05 12:40:15 +13:00
..
argcargv.i argcargv.i cosmetic updates 2022-05-15 18:32:53 +01:00
const.i Cosmetic stray semi-colon removal after %typemap using quotes 2022-08-31 19:40:13 +01:00
director.swg [php] Fix director upcall check 2022-01-22 20:01:00 +13:00
factory.i [php] Generate PHP type declarations 2022-01-20 10:07:44 +13:00
php.swg Sort out predefined SWIG-specific macros 2022-10-05 12:40:15 +13:00
phpinit.swg [php] Fix testcase segfaults with PHP 8.0 2022-09-29 13:13:52 +13:00
phpinterfaces.i [php] Fix two incorrect PHP 8 conditionals 2021-12-08 13:10:38 +13:00
phpkw.swg Renames performed by %namewarn with rename= are printed in warning message 2022-02-06 13:51:37 -05:00
phppointers.i [php] Generate PHP type declarations 2022-01-20 10:07:44 +13:00
phprun.swg [php] Workaround PHP 8.2 header problem 2022-09-28 19:01:01 +13:00
std_auto_ptr.i Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr 2022-09-17 10:23:51 +01:00
std_common.i php: Trim trailing whitespace from PHP typemaps 2021-03-26 10:19:57 +13:00
std_deque.i WARN_* constants are user visible, so keep existing WARN_PHP4_* for 2008-07-03 00:09:56 +00:00
std_map.i php: Trim trailing whitespace from PHP typemaps 2021-03-26 10:19:57 +13:00
std_pair.i Consistent parameter names for std::pair 2019-02-14 22:44:27 +00:00
std_string.i Cosmetic stray semi-colon removal after %typemap using quotes 2022-08-31 19:40:13 +01:00
std_unique_ptr.i Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr 2022-09-17 10:23:51 +01:00
std_vector.i php: Trim trailing whitespace from PHP typemaps 2021-03-26 10:19:57 +13:00
stl.i php: Trim trailing whitespace from PHP typemaps 2021-03-26 10:19:57 +13:00
swigmove.i Provide SWIGTYPE MOVE typemaps in swigmove.i 2022-09-16 08:36:25 +01:00
typemaps.i Cosmetic stray semi-colon removal after %typemap using quotes 2022-08-31 19:40:13 +01:00
utils.i More move semantics improvements 2022-07-04 11:19:50 +01:00