swig/Lib
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
..
cffi Cosmetic stray semi-colon removal after %typemap using quotes 2022-08-31 19:40:13 +01:00
csharp Sort out predefined SWIG-specific macros 2022-10-05 12:40:15 +13:00
d Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr 2022-09-17 10:23:51 +01:00
go Sort out predefined SWIG-specific macros 2022-10-05 12:40:15 +13:00
guile Sort out predefined SWIG-specific macros 2022-10-05 12:40:15 +13:00
java Sort out predefined SWIG-specific macros 2022-10-05 12:40:15 +13:00
javascript Javascript v8 object to string exceptions improvement 2022-09-19 09:09:29 +01:00
lua Sort out predefined SWIG-specific macros 2022-10-05 12:40:15 +13:00
mzscheme Sort out predefined SWIG-specific macros 2022-10-05 12:40:15 +13:00
ocaml Sort out predefined SWIG-specific macros 2022-10-05 12:40:15 +13:00
octave Move SWIG_Octave_Raise into a function 2022-09-19 14:48:33 +01:00
perl5 Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr 2022-09-17 10:23:51 +01:00
php Sort out predefined SWIG-specific macros 2022-10-05 12:40:15 +13:00
python Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr 2022-09-17 10:23:51 +01:00
r Javascript, Octave, R - Improve exceptions for %catches 2022-09-19 09:09:29 +01:00
ruby Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr 2022-09-17 10:23:51 +01:00
scilab std::string throws typemaps 2022-09-19 09:09:29 +01:00
std Fixes for deprecated std::basic_string::reserve() 2022-07-31 01:02:08 +01:00
tcl Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr 2022-09-17 10:23:51 +01:00
typemaps Sort out predefined SWIG-specific macros 2022-10-05 12:40:15 +13:00
xml
allkw.swg Improve #include guard macros 2022-07-19 09:35:46 +12:00
attribute.i Fix %arg in Lib/attribute.i 2013-05-25 00:37:57 +01:00
carrays.i Fix missing include in SWIG typemap 2019-01-06 08:31:11 -05:00
cdata.i Merge pull request #1398 from swig-fortran/missing-includes 2022-02-01 14:05:17 +13:00
cmalloc.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
constraints.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
cpointer.i Fix function prototypes of generated pointer functions 2022-02-03 17:25:44 +13:00
cstring.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
cwstring.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
director_common.swg Create director_common.swg for language-indep code 2015-03-12 19:51:11 +13:00
exception.i [php] Fix two incorrect PHP 8 conditionals 2021-12-08 13:10:38 +13:00
intrusive_ptr.i Fix bug with macro invocation with empty first arg 2017-10-08 09:02:28 +13:00
inttypes.i Remove duplicate declarations of strtoimax and strtoumax in inttypes.i 2014-04-08 23:47:22 +01:00
linkruntime.c fix macro issue reported by Vladimir Menshakov 2006-04-10 19:00:44 +00:00
math.i Conditionalise math.i for PHP 2021-03-17 09:43:15 +13:00
pointer.i Update link to point to 3.0 docs 2015-01-08 11:16:48 +13:00
runtime.swg
shared_ptr.i Fix bug with macro invocation with empty first arg 2017-10-08 09:02:28 +13:00
std_except.i [OCaml] Some exception improvements 2019-02-07 16:25:10 -07:00
stdint.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
stl.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
swig.swg Provide SWIGTYPE MOVE typemaps in swigmove.i 2022-09-16 08:36:25 +01:00
swigarch.i Typo fix in error messages from swigarch.i 2015-02-04 23:07:18 +00:00
swigerrors.swg Add Python support for std::unique_ptr inputs 2022-07-17 15:20:20 +01:00
swigfragments.swg Merge pull request #1398 from swig-fortran/missing-includes 2022-02-01 14:05:17 +13:00
swiginit.swg Lib/javascript/v8: use context-aware initialization. 2021-03-02 15:31:28 +01:00
swiglabels.swg Revert "Modify fix for << in array size" 2022-07-27 13:45:08 +12:00
swigrun.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
swigrun.swg Runtime tables deterministic ordering (4) 2022-09-29 19:40:47 +01:00
swigwarnings.swg Add support for the <=> operator (C++20) 2022-07-27 09:12:40 +12:00
wchar.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
windows.i Add missing VOID definition to windows.i 2019-01-07 18:46:14 +00:00