Fix std::string support for v8.

This commit is contained in:
Oliver Buchtala 2013-01-08 21:48:22 +01:00
commit 9d630ab930
3 changed files with 60 additions and 59 deletions

View file

@ -1,12 +1,10 @@
/* -----------------------------------------------------------------------------
* std_string.i
*
* Typemaps for std::string and const std::string&
* These are mapped to a JSCore String and are passed around by value.
* Typemaps for const std::string&.
* To use non-const std::string references use the following %apply:
* %apply const std::string & {std::string &};
*
* To use non-const std::string references use the following %apply. Note
* that they are passed by value.
* %apply const std::string & {std::string &};
* ----------------------------------------------------------------------------- */
%{