Commit graph

6 commits

Author SHA1 Message Date
Lyle Johnson
58c7e8b18d Added two more tests to lib_std_string.i, to test throwing a pointer to
a string and a const pointer to a string.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6124 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 13:26:45 +00:00
William S Fulton
ba63e63b35 const std::string reference throws typemap test added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6052 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-23 21:51:42 +00:00
Marcelo Matus
3f1f31d1e8 Fix long long and other warnings.
Add the macros

%typemap_asfromcheck()
%typemap_asfrom()

that can be used to defined all the different typemaps
for types where the As/From/Check methods are provided.

All the basic type (int, char,...) typemaps are implemented
using them.

The std::string and std::complex<T> are reimplemented using
the new %typemap_asfrom/check macros too. This helps to complete
all the previously missing typemaps (consttab, varin, varout,..)
and also ilustrates how to define the As/From/Check methods
to use with the %typemap_asfrom/check macros.

As a byproduct, the C complex typemap was added, and the file

complex.i

can be used to load the complex support for either C or C++. The
original C++ std_complex.i is still there, and the corresponding C
ccomplex.i too, if they need to be included explicitly.

Also, the As/From methods are declared via %fragment, so, they
can be reused as needed, and only appear in the wrapped code if
they corresponding typemap is invoked, making the typemaps
and the entire code shorter and simpler.


Marcelo.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5691 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-28 01:30:13 +00:00
Logan Johnson
d39635101e *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4478 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-08 05:13:19 +00:00
Logan Johnson
56e34f6d39 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4477 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-08 04:51:15 +00:00
Dave Beazley
12a43edc2d The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00