You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
350 B
28 lines
350 B
4 years ago
|
//
|
||
|
// 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
|