/trunk/Lib/typemaps/std_string.swg
# · Unknown · 27 lines · 18 code · 9 blank · 0 comment · 0 complexity · c8655c0188ed659d7c391335796cbf84 MD5 · raw file
- //
- // String
- //
- #ifndef SWIG_STD_BASIC_STRING
- #define SWIG_STD_STRING
- %include <typemaps/std_strings.swg>
- %{
- #include <string>
- %}
-
- namespace std
- {
- %naturalvar string;
- class string;
- }
- %typemaps_std_string(std::string, char, SWIG_AsCharPtrAndSize, SWIG_FromCharPtrAndSize, %checkcode(STDSTRING));
- #else
- %include <std/std_string.i>
- #endif