Commit graph

6 commits

Author SHA1 Message Date
Lyle Johnson
55d1b3338f 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@6124 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 13:26:45 +00:00
William S Fulton
5bd41fa4bf const std::string reference throws typemap test added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6052 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-23 21:51:42 +00:00
Marcelo Matus
b85c9ace6b 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@5691 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-28 01:30:13 +00:00
Logan Johnson
80c2ff17c4 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4478 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-08 05:13:19 +00:00
Logan Johnson
3525f78b58 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4477 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-08 04:51:15 +00:00
Dave Beazley
516036631c The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00