use new checkcodes,which should take precedence over plain C strings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7793 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8329412c5d
commit
65241338c8
2 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ namespace std
|
||||||
class string;
|
class string;
|
||||||
}
|
}
|
||||||
|
|
||||||
%typemaps_std_string(std::string, char, SWIG_AsCharPtrAndSize, SWIG_FromCharPtrAndSize, %checkcode(STRING));
|
%typemaps_std_string(std::string, char, SWIG_AsCharPtrAndSize, SWIG_FromCharPtrAndSize, %checkcode(STDSTRING));
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ namespace std
|
||||||
class wstring;
|
class wstring;
|
||||||
}
|
}
|
||||||
|
|
||||||
%typemaps_std_string(std::wstring, wchar_t, SWIG_AsWCharPtrAndSize, SWIG_FromWCharPtrAndSize, %checkcode(UNISTRING));
|
%typemaps_std_string(std::wstring, wchar_t, SWIG_AsWCharPtrAndSize, SWIG_FromWCharPtrAndSize, %checkcode(STDUNISTRING));
|
||||||
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue