more examples, and fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6432 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-18 02:08:55 +00:00
commit 39ae60f7d8
17 changed files with 123 additions and 28 deletions

View file

@ -1,6 +1,6 @@
%module lib_std_except
%include "std_except.i"
%include <std_except.i>
%inline %{

View file

@ -1,5 +1,6 @@
%module lib_std_string
%include "std_string.i"
%include <std_basic_string.i>
%include <std_string.i>
%template(string) std::basic_string<char>;
%inline %{

View file

@ -1,6 +1,6 @@
%module lib_std_wstring
%include "std_wstring.i"
%include <std_basic_string.i>
%include <std_wstring.i>
%template(wstring) std::basic_string<wchar_t>;

View file

@ -329,3 +329,18 @@ t2 = p.vtest(t)
if t.var_namet != t2.var_namet:
raise RuntimeError, "bad SWIGTYPE* typemap"
if cvar.fixsize != 'ho\0la\0\0\0':
raise RuntimeError, "bad FIXSIZE typemap"
cvar.fixsize = 'ho'
if cvar.fixsize != 'ho\0\0\0\0\0\0':
raise RuntimeError, "bad FIXSIZE typemap"
f = Foo(3)
f1 = fptr_val(f)
f2 = fptr_ref(f)
if f1._a != f2._a:
raise RuntimeError, "bad const ptr& typemap"

View file

@ -2,7 +2,7 @@ import template_default_arg
helloInt = template_default_arg.Hello_int()
helloInt.foo(Hello_int.Hi.hi)
helloInt.foo(template_default_arg.Hello_int.hi)
x = template_default_arg.X_int()

View file

@ -33,7 +33,7 @@ except:
# the old large format
if not SWIG_TypeQuery("vfncs::ArithUnaryFunction<vfncs::arith_traits<float,real>::argument_type,vfncs::arith_traits<float,real >::result_type > *"):
if not SWIG_TypeQuery("vfncs::ArithUnaryFunction<vfncs::arith_traits<float,double>::argument_type,vfncs::arith_traits<float,double >::result_type > *"):
raise RuntimeError