massive typemap unification
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7676 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5bbd841acc
commit
7e5e4fd1f9
144 changed files with 6378 additions and 7248 deletions
37
Lib/tcl/std_wstring.i
Normal file
37
Lib/tcl/std_wstring.i
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
//
|
||||
// std::wstring
|
||||
//
|
||||
|
||||
#ifndef SWIG_STD_BASIC_STRING
|
||||
#define SWIG_STD_WSTRING
|
||||
|
||||
%{
|
||||
#include <string>
|
||||
%}
|
||||
|
||||
namespace std
|
||||
{
|
||||
class wstring;
|
||||
}
|
||||
|
||||
%include <typemaps/std_string.i>
|
||||
%include <tclwstrings.swg>
|
||||
|
||||
%fragment("Tcl_std_wstring_asptr","header",fragment="SWIG_AsCharPtrAndSize") {
|
||||
%tcl_asptr_decl(std::wstring)
|
||||
}
|
||||
%fragment("Tcl_std_wstring_asval","header",fragment="Tcl_std_wstring_asptr") {
|
||||
%tcl_asptr_decl(std::wstring)
|
||||
}
|
||||
|
||||
%std_string_asptr_frag(std::wstring, wchar_t, SWIG_AsCharPtrAndSize, "Tcl_std_wstring_asptr")
|
||||
%std_string_asval_frag(std::wstring, "Tcl_std_wstring_asval")
|
||||
%std_string_from(std::wstring, SWIG_FromCharPtrAndSize)
|
||||
|
||||
%typemap_asptrfromn(SWIG_CCode(UNISTRING), std::wstring);
|
||||
|
||||
#else
|
||||
|
||||
%include <std/std_string.i>
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue